Created
August 31, 2014 11:00
-
-
Save groovemonkey/22e8f8804fdc3c98dbcd to your computer and use it in GitHub Desktop.
Funny Piglatinizer
This file contains 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
userword = raw_input("Please input your word").lower() | |
def piglatinize(word): | |
splitword = word.split() | |
if len(splitword) == 1: | |
pig = word[1:] | |
pig = pig + word[0] + "ay" | |
print pig | |
else: | |
print "One word at a time, asshole! But whatever, here ya go: " | |
for w in splitword: | |
piglatinize(w) | |
piglatinize(userword) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just a funny exercise, taken too far. NOTE FOR POTENTIAL EMPLOYERS/CLIENTS: THIS DOES NOT REFLECT THE STATE OF MY PYTHON SKILLS.