Last active
June 9, 2017 22:23
-
-
Save renzon/7c50bf90ac26fef8b2c587d7bb05389a to your computer and use it in GitHub Desktop.
hacker_case.py
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 hacker_case(s): | |
dct = dict(zip('abc', '123')) | |
return map(dct.get, s, s) | |
if __name__ == '__main__': | |
print(''.join(hacker_case('abcdeuhsdfihusf6'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment