How can I improve this possible solution
The problem Pig Latin You have two friends who are speaking Pig Latin to each other! Pig Latin is the same words in the same order except that you take the first letter of each word and put it on the end, then you add 'ay' to the end of that. ("road" = "oadray") Task Your task is to take a sentence in English and turn it into the same sentence in Pig Latin! Input Format A string of the sentence in English that you need to translate into Pig Latin. (no punctuation or capitalization) Output Format A string of the same sentence in Pig Latin. Sample Input "nevermind youve got them" Sample Output "evermindnay ouveyay otgay hemtay" Explanation The output should be the original sentence with each word changed so that they first letter is at the end and then -ay is added after that. My code: https://code.sololearn.com/cK0F4QpjmDpd/?ref=app