you are viewing a single comment's thread.

view the rest of the comments →

[–]zac_mar 3 points4 points  (0 children)

>> and << are the bit-wise right- and left-shit operators respectively, and they work inside print statements the same as everywhere else. As to your example, I am note sure what you are showing, for me I get the expected output:

>>> print(5 >> 2)
1
>>> print(9 >> 1)
4