I was getting a little off topic trying to make words starting with vowels work with the code. I used a bunch of or statements and in testing the only words starting with 'a' are marked as true. Why doesn't this work?
(the parentheses were added in debugging; didn't fix it)
Also is there (rather what is) a better way of doing this?
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first= word if first == ("a" or ("e" or ("i" or ("o" or "u")))): new_word = word + "w" + pyg print new_word else: new_word = word[1:len(word)] + first + pyg print new_word else: print 'empty'