Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created November 4, 2015 13:33
Show Gist options
  • Save popey456963/a170369bc576ffdff7d5 to your computer and use it in GitHub Desktop.
Save popey456963/a170369bc576ffdff7d5 to your computer and use it in GitHub Desktop.
Ascii Transformer
line = input()
if len(line)%3 == 0:
n=3
c=""
for i in [line[i:i+n] for i in range(0, len(line), n)]:
c+=chr(int(i))
print(c)
else:
print("ERROR")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment