Skip to content

Instantly share code, notes, and snippets.

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"