I am trying to write a code which will turn a word into pig latin/dog latin. For example, is will become isyay, scram will become amscray. The first situation works, however, the second situation prints cramsay. Why does it not seem to be looping properly?
def doggify(word):
wordlist=list(word)
start=word[0]
if start=='a' or start=='e' or start=='i' or start=='o' or start=='u':
dogword=word+'yay'
return print(dogword)
else:
empty=[]
for letter in wordlist:
if letter!='a' or letter!='e' or letter!='i' or letter!='o' or letter!='u':
empty.append(letter)
wordlist.remove(letter)
dogword=''.join(wordlist)+''.join(empty)+'ay'
return print(dogword)