Operators
And &
&
a = 50 # 110010
b = 25 # 011001
c = a & b # 010000
print(c)
>> 16
Right Shift >>
>>
x = 240 # 11110000
y = x >> 2 # 00111100 (first places are always 0s when shifting)
print(y)
>> 60
Last updated
Was this helpful?