Skip to content

Instantly share code, notes, and snippets.

@YoSmudge
Created January 23, 2013 22:54
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 YoSmudge/4615374 to your computer and use it in GitHub Desktop.
Save YoSmudge/4615374 to your computer and use it in GitHub Desktop.
import re
class UnJamesEr(object):
def __init__(self):
while True:
ip = raw_input('> ')
output = ""
for word in ip.split('ay'):
if len(word) > 0:
output += word[-1]+word[:-1]+" "
print output.lower()
if __name__ == "__main__":
UnJamesEr()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment