Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- temp = format(ord(char), 'b')
- temp = format(ord('a'), 'b')
- print(temp)
- #'1100001'
- c = chr(int(temp, 2))
- print(c)
- # 'a'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement