What do >> and << mean in Python?

I notice that I can do things like 2 << 5 to get 64 and 1000 >> 2 to get 250.

Also I can use >> in print:

print >>obj, "Hello world"

What is happening here?

Leave a Comment