私は文章を豚のラテン語に変えていますが、リストの単語を編集すると決してそのまま残りません。forループのリストを編集する必要があります。 [Python]
sentence = input("Enter a sentence you want to convert to pig latin")
sentence = sentence.split()
for words in sentence:
if words[0] in "aeiou":
words = words+'yay'
そして、私は文を印刷するとき、私は私が入れ同じ文を取得する。