+ 1

Pls Guys help me with this

Am unable to solve pig latin, in python, pls explain to me

12th Jun 2020, 9:29 AM
Awojobi Godfrey
Awojobi Godfrey - avatar
2 Antworten
+ 4
Post your code to explain. Where you got stuck.
12th Jun 2020, 9:49 AM
Mandip Adhikari
Mandip Adhikari - avatar
+ 3
Firstly you should split text by str.split(), then in loop change each word(delete first symbol by slice i[1:] and add "ay" i+="ay") in the end you can make list of new words and print sentence (print(" ".join(new_list))) my solution: print(" ".join([i[1:] + i[0] + "ay" for i in input().split()])) I forget about adding first symbol of word to the end
12th Jun 2020, 9:52 AM
y73n0k
y73n0k - avatar