0
What is
X = 5 print (X>>2) Can anyone explain for me???
2 Answers
+ 1
It's a binary shift operator.
https://www.tutorialspoint.com/JUMP_LINK__&&__python__&&__JUMP_LINK/python_basic_operators.htm
0
Bit shifting, in this example code it is shifting the binary bits for 5 (0101) right 2 spots to make the binary 0001 aka 1.
You can use the >> operator to write to files also