Skip to content

Instantly share code, notes, and snippets.

@groovemonkey
Created August 31, 2014 11:00
Show Gist options
  • Save groovemonkey/22e8f8804fdc3c98dbcd to your computer and use it in GitHub Desktop.
Save groovemonkey/22e8f8804fdc3c98dbcd to your computer and use it in GitHub Desktop.
Funny Piglatinizer
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)
@groovemonkey
Copy link
Author

Just a funny exercise, taken too far. NOTE FOR POTENTIAL EMPLOYERS/CLIENTS: THIS DOES NOT REFLECT THE STATE OF MY PYTHON SKILLS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment