# & (AND), | (OR), ~ (Compliment), ^ (XOR), << (Left Shift) , >> (Right Shift) 
#Bitwise operators only works on int in binary form

# AND (&) Table
# 1 & 1 = 1
# 1 & 0 = 0
# 0 & 1 = 0
# 0 & 0 = 0

# OR (|) Table
# 1 & 1 = 1
# 1 & 0 = 1
# 0 & 1 = 1
# 0 & 0 = 0

# XOR (^) Table
# 1 & 1 = 0
# 1 & 0 = 1
# 0 & 1 = 1
# 0 & 0 = 0

# Compliment (~)
# ~1 = 0
# ~0 = 1

print(7 & 19) #3
print(7 | 19) #23
print(~7) 

print(bin(3))  #0b11
print(bin(7))   # 0b111
print(bin(19))   # 0b10011
print(bin(23)) #0b10111






5b30af66f4af0aa0af5f71c2aa97013c9150c752
<mask token>

print(7 & 19)
print(7 | 19)
print(~7)
print(bin(3))
print(bin(7))
print(bin(19))
print(bin(23))

# & (AND), | (OR), ~ (Compliment), ^ (XOR), << (Left Shift) , >> (Right Shift) 
#Bitwise operators only works on int in binary form

# AND (&) Table
# 1 & 1 = 1
# 1 & 0 = 0
# 0 & 1 = 0
# 0 & 0 = 0

# OR (|) Table
# 1 & 1 = 1
# 1 & 0 = 1
# 0 & 1 = 1
# 0 & 0 = 0

# XOR (^) Table
# 1 & 1 = 0
# 1 & 0 = 1
# 0 & 1 = 1
# 0 & 0 = 0

# Compliment (~)
# ~1 = 0
# ~0 = 1

print(7 & 19) #3
print(7 | 19) #23
print(~7) 

print(bin(3))  #0b11
print(bin(7))   # 0b111
print(bin(19))   # 0b10011
print(bin(23)) #0b10111





