Skip to content

Instantly share code, notes, and snippets.

@lahwran
Forked from Senix/ROT13.py
Created May 8, 2011 04:17
Show Gist options
  • Save lahwran/961094 to your computer and use it in GitHub Desktop.
Save lahwran/961094 to your computer and use it in GitHub Desktop.
#!/bin/usr/python
rot_dictionary = {"a":"n", "b":"o", "c":"p", "d":"q", "e":"r", "f":"s", "g":"t",
"h":"u", "i":"v", "j":"w", "k":"x", "l":"y", "m":"z", "n":"a",
"o":"b", "p":"c", "q":"d", "r":"e", "s":"f", "t":"g", "u":"h",
"v":"i", "w":"j", "x":"k", "y":"l", "z":"m"}
original = raw_input("your text: ")
mixed = ""
for i in original:
mixed += rot_dictionary[i]
print mixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment