Skip to content

Instantly share code, notes, and snippets.

@lucaspg96
Created March 23, 2017 17:06
Show Gist options
  • Save lucaspg96/6f106524f5bc9cf22c729c1b0cbe5608 to your computer and use it in GitHub Desktop.
Save lucaspg96/6f106524f5bc9cf22c729c1b0cbe5608 to your computer and use it in GitHub Desktop.
def decode(s):
return " ".join([chr(int(n)) for n in s.split(" ") if n!='32'])
def encode(s):
return " ".join([str(ord(c)) for c in s])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment