+ 1
Pls Guys help me with this
Am unable to solve pig latin, in python, pls explain to me
2 Answers
+ 4
Post your code to explain. Where you got stuck.
+ 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