Skip to content

Instantly share code, notes, and snippets.

@renzon
Last active June 9, 2017 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renzon/7c50bf90ac26fef8b2c587d7bb05389a to your computer and use it in GitHub Desktop.
Save renzon/7c50bf90ac26fef8b2c587d7bb05389a to your computer and use it in GitHub Desktop.
hacker_case.py
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