Akhil Narayanan Nair home

Python - Arithmetic Operators

================

import math

import random

print(“Sum of 35 plus 35 =”,35+35)

print(“Subtraction of 100 minus 1 =”,100-1)

print(“Multiplication of 5 times 5 =”,5*5)

print(“Division of 50 by 5 =”,50/5)

print(“Square of 2 rise to 2 =”,2**2)

print(“Division Quotient 16 // 4 =”,16//4)

print(“Reminder 14 % 4 =”,14%4)

print(“Maximum of - 6 7 4 3 9 5 2”,max(6,7,4,3,9,5,2))

print(“Minimum of - 6 7 4 3 9 5 2”,min(6,7,4,3,9,5,2))

print(“Power of - 3,3 is:-“,math.pow(3,3))

print(“Square root of 64 is:-“,math.sqrt(64))

print(“Round of 3.4567,2:-“,round(3.4567,2))

print(“Exponential of 5:-“,math.exp(5))

print(“Cosine of 5:-“,math.cos(5))

print(“Random of 5:-“,random.seed(5))