Wanted to convert every word in a sentence to a word which has its first letter at last and has a ay added to it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Wanted to convert every word in a sentence to a word which has its first letter at last and has a ay added to it

English to pig latin

1st Feb 2020, 2:20 AM
Harish Narayana
Harish Narayana - avatar
4 Answers
+ 2
https://code.sololearn.com/cB9LV1FZJ7Ra/?ref=app Tnq so much guys with your help did it
1st Feb 2020, 5:49 PM
Harish Narayana
Harish Narayana - avatar
0
Help me out to write this code guys
1st Feb 2020, 2:21 AM
Harish Narayana
Harish Narayana - avatar
1st Feb 2020, 2:22 AM
Harish Narayana
Harish Narayana - avatar
0
Your code works for one word. Awesome. For a sentence with multiple words, you need your function to work on each word. Sounds like iteration.... for i in ...... Give it a go
1st Feb 2020, 7:01 AM
Rik Wittkopp
Rik Wittkopp - avatar