>> operator in Python

It’s the right bit shift operator, ‘moves’ all bits once to the right.

10 in binary is

1010

shifted to the right it turns to

0101

which is 5

Leave a Comment