I am working on a program that changes the user's inputted word into Pig Latin.
def main():
word = input('Please enter a word ')
if word[0] == "A" or "E" or "I" or "O" or "U":
print(word + "HAY")
else:
print(word + word[0] + "HAY")
main()
I have a certain set of rules to follow: if the user's inputted word has a, e, i, o,or u as its starting index, the program prints the word with HAY
printed at the end of it. If the word has any other letter at the beginning, the program is supposed to take the first letter of the word and place it at the front of HAY
.
That's where my issue is. I can't quite figure out what I am supposed to type in order to have the program remove that first index and place it just behind where HAY
prints.