Skip to content

Instantly share code, notes, and snippets.

@smoitra87
Last active December 23, 2015 06:49
Show Gist options
  • Save smoitra87/6596791 to your computer and use it in GitHub Desktop.
Save smoitra87/6596791 to your computer and use it in GitHub Desktop.
Bitshift operator in Python
with open('/tmp/bla','w') as fout :
for i in xrange(10) :
print >>fout, i,chr(64+i)
import sys
for i in xrange(10) :
print >>sys.stdout, i,chr(64+i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment