Skip to content

Instantly share code, notes, and snippets.

@DeBomb123
Last active December 14, 2015 12:39
Show Gist options
  • Save DeBomb123/5088330 to your computer and use it in GitHub Desktop.
Save DeBomb123/5088330 to your computer and use it in GitHub Desktop.
pyg = "ay"
original = raw_input("Enter a word:")
word = original.lower()
first = str(word)[0]
new_word1 = str(word) + pyg
new_word = word[1:len(word)] + first + pyg
if len(original) > 0 and original.isalpha():
if first == "a" or first == "e" or first == "i" or first == "o" or first == "u":
print str(new_word1)
else:
print str(new_word)
else:
print "Sorry, that word is not valid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment