Question: Pig Latin translator II (Python) Problem 3-14 asked you to write a Pig Latin translator for individual words. In this problem you should build on
Pig Latin translator II (Python)
Problem 3-14 asked you to write a Pig Latin translator for individual words. In this problem you should build on this solution to develop a function that can translate whole sentences into Pig Latin.
Test code:
print(pig_latin("Today is a nice day ." ))
print(pig_latin("I can not wait until lunch." ))
print(pig_latin("It is about time." ))
Sample run:
Odaytay isyay ayay icenay ayday.
Iyay ancay otnay aitway untilyay unchlay.
Ityay isyay aboutyay imetay.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
