__author__ = 'Gaurav'

#Addition
# use the interactive Python interpreter prompt:
#3 + 5 gives 8
# ' 'a' + 'bgives 'ab'
print('a' + 'b')

#Multiplication
#2 * 3 gives 6
# 'la' * 3 gives 'lalala'
print('ab'*3)

#Minus
#the first operand is absent it is assumed to be zero
#50 - 24 gives 26

#Power
#2**3 gives 8
print(2**3)

#Division
#4/2 gives 2
#13.0/3 gives 4.3333333333333333333
print(13.0/3)

#Floor Division //
print(5/2)
print(5//2)

#Modulo
#5%2 gives 1
print(5%2)
#-25.5%2.25 gives 1.5
print(-25.5%2.25)

#left shift
print(2<<2)

#Right Shift
print(10>>2)

#bit-wise AND
print(5&3)

#bit-wise OR
print(5|3)

#bit-wise XOR
print(5^3)

#(bit-wise invert) The bit-wise inversion of x is -(x+1)
print(~5)

#boolean AND/NOT/OR
x = False
y = True
print(x and y)
print(not y)
print(x or y)