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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!