Create a function that turns text into pig latin. Pig Latin is a simple text transformation that modifies each word by:
moving the first character to the end of each word;
then appending the letters "ay" to the end of each word.
For example, python ends up as ythonpay.
def pig_latin(text):
say = ""
# Separate the text into words
words =
for word in words:
# Create the pig Latin word and add it to the list
# Turn the list back into a phrase
return
print(pig_latin("hello how are you")) # Should be "ellohay owhay reaay ouyByn
print(pig_latin("programming in python is fun")) # Should be "rogramminonav niav yt