Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a_binary_string = "01101001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101"
- binary_values = a_binary_string.split()
- ascii_string = ""
- for binary_value in binary_values:
- an_integer = int(binary_value, 2)
- ascii_character = chr(an_integer)
- ascii_string += ascii_character
- print(ascii_string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement