Skip to content

Instantly share code, notes, and snippets.

print("This Program converts to Pig Latin, then prints both the original word and the Pig Latin version to the console. The program continues reading words until the user enters 'stop'.")
def pigLatin(ll):
flag = 0
if(ll[0] == "a" or ll[0] == "e" or ll[0] == "i" or ll[0] == "o" or ll[0]== "u" or ll[0] == "y"):
flag = 1
elif(ll[0] == "A" or ll[0] == "E" or ll[0] == "I" or ll[0] == "O" or ll[0]== "U" or ll[0] == "Y"):
flag = 1
if(flag == 1):