Created
January 23, 2013 22:54
-
-
Save YoSmudge/4615374 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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