Skip to content

Instantly share code, notes, and snippets.

@tonykamillo
Last active January 4, 2016 03:49
Show Gist options
  • Save tonykamillo/8564224 to your computer and use it in GitHub Desktop.
Save tonykamillo/8564224 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys, string
DICT = dict(zip(string.lowercase, ['ka', 'tu', 'mi', 'te', 'ku', 'lu', 'ji', 'ri', 'ki', 'zu', 'me',
'ta', 'rin', 'to', 'mo', 'no', 'ke', 'shi', 'ari', 'chi', 'do', 'ru', 'mei', 'na', 'fu', 'ra']))
if __name__ == '__main__':
if len(sys.argv) <= 1:
sys.exit('Enter your name')
print( ''.join([DICT.get(char.lower(), ' ') for char in ' '.join(sys.argv[1:])]) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment