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