python shift operator uses
python shift operator uses Question: Im just learning about pythons bitwise operator << and >>. as far as I see, it takes the binary version of an integer and shifts it n places left or right. that would mean that saying x<<y is equivalent to x*(2**y) so my question is why is there an operator …