Skip to content

Instantly share code, notes, and snippets.

@st98
Created November 11, 2013 09:18
Show Gist options
  • Save st98/7410302 to your computer and use it in GitHub Desktop.
Save st98/7410302 to your computer and use it in GitHub Desktop.
import re
s = '''
01001001 01101110
01110100 01100101
01101100 00100000
01001000 01100101
01100001 01110010
01110100 01110011
00100000 01011001
01101111 01110101
'''
s = re.split('\s', s.strip())
s = map(lambda a: chr(int(a, 2)), s)
print(''.join(s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment