+ 2
Pig Latin
Could anyone please explain Pig Latin Code Couch problem?
2 odpowiedzi
+ 2
1. Your input will be a sentence. (String)
2. Break your input into seperate words
3. Take the first letter from the word and attach it to the word, then attach 'ay'
this is a test
histay siay aay esttay
+ 8
Here is how I did it in python:-
x=""
for i in input().split():
x += i[1:] + i[0:1] + "ay "
print (x)