Friday, February 06, 2009

base 2? - Oh, I get it!

I actually wrote code to help me get the joke on the lower right of today's xkcd comic :-)


#!/usr/bin/env/python
import sys
sentence = ""
for word in sys.argv[1:]:
sentence += chr( int( word, 2 ) )
print sentence

0 comments: