Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = 3.775674373
- num1 = 2
- num2 = 3
- num3 = 3.1416j+1 #complex number
- x = "hello universe"
- y = {
- 1:'a',
- 2:'b'
- }
- print( round( num, 1 ) ) # round
- print( type( num ) ) # type of a number
- print( num1**num2 ) # power
- print( num2 // num1 ) # it will give the floor value 1
- print( num1 is num2 ) # true/false
- print( 'helo u' in x ) # true/flase
- print( 1 in y ) # true/false
- print( num3.imag, num3.real ) #imaginary & real part
Advertisement
Add Comment
Please, Sign In to add comment