Skip to content

Instantly share code, notes, and snippets.

@alex-born
alex-born / Lab 7b.py
Last active October 15, 2019 02:29 — forked from JPierceM3/Lab 7b
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):