This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pyg_sentence(sentence): | |
new_sentence = "" | |
for word in sentence: | |
new_sentence += pyg(word) | |
return new_sentence | |
def pyg(x): | |
if x[0] == 'a' or x[0] == 'e' or x[0] == 'i' or x[0] == 'o' or x[0] == 'u': | |
new_word = ' ' + x + "ay" |