a = 0b01 #desimal=1 b = 0b10 #desimal=2 print (a&b) #AND print (a|b) #OR print (a^b) #XOR print (~a) #NOT print (~b) #NOT