#!/usr/bin/python

#Multiple assignment applicable
#assign
vara = varb = varc = 90
# to check the variable value
print("vara :", vara)
print("varb :", varb)
print("varc :", varc)

# assign
varint, varfloat, varstr = 90,92.75,"john"
#to check the variable value
print("varint :", varint)
print("varfloat :", varfloat)
print("varstr :", varstr)


# methods with numbers

# to convert the value to a plain integer
print("a plain integer :", int(22/7))

# to import the module

import math

# to print absolute value
print("abs(-940.2)  :", abs(-940.2))


# to print largest integer not greater than pi
print("math.floor(math.pi)",math.floor(math.pi))

# to print largest of its arguments
print("max(34,23,329):",max(34,23,329))

# to print smallest of its arguments
print("min(34,23,329):",min(34,23,329))

# to print value of 100 power of 0
print("math.pow(100,0)  :",math.pow(100,0))

# to print rounded to 3 digits
print("round(math.pi,3) :",round(math.pi,3))

# to print square root
print("math.sqrt(math.pi)  :",math.sqrt(math.pi))

# import random module
import random
# to print a random float r, such that 0 is less than or
# equal to r and r is less than 1
print("random()  :",random.random())
print("random()  :",random.random())


# trignometric functions with numbers
print("cos(0)  :",math.cos(0))

# to print the arc sins of 0, in radians
print("sin(0)   :",math.sin(0))

# to convert the value to plain integer
print("a plain integer :", int(22/7))

# to convert the value to a floating-point number
print("a floating point number :", float(22/7))

# to convert value to a complex number with real part 3 and imaginary part zero
print("complex number :", complex(3))

# to convert 3 and 2 to a complex number with real part 3 and imaginary part 2
print("complex number :", complex(3,2))
