PY
py
1
2
3
4
5
6
7
8
9
10
11
12
#Pig latin challenge
#For each word in a sentence, add the first letter + "ay" to the end of the word
#Example:
#can you drive -> Should be:
#ancay ouyay riveday
sentence =list(input().split())
for word in sentence:
last = word[0]
word += last
print(word[1:]+ "ay", end=" ")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run