10 lines
135 B
Python
Executable File
10 lines
135 B
Python
Executable File
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
|
|
|