Created
March 23, 2017 17:06
-
-
Save lucaspg96/6f106524f5bc9cf22c729c1b0cbe5608 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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