message = "Hello World!" binary = " ".join(format(ord(c), "b") for c in message) binary_text = binary normal = "".join(chr(int(c, 2)) for c in binary_text.split(" ")) print(normal,binary)