Question: Write a Python program that prompts for text input and prints out the Pig Latin translation according to the above rules. If the user enters

Write a Python program that prompts for text input and prints out the Pig Latin translation according to the above rules. If the user enters no words, your program should print a message that the input can't be translated.
Your logic for translating a word should be contained in function that can be invoked multiple times by your program.
Note:
- don't worry abouthandling special cases such as:
numbers,
commas or other punctuation
non-latin characters
- You can use this stringcheck whether any specific letter isa vowel:
#list of vowels
vowels = 'aeiouAEIOU'
remember to account for words that start with an upper-case letter
Submit your work in Canvas as a text file called pig_latin.py that can be successfully executed.
Extra credit - enable your program to support multi-word entries. Remember you can turn a string into a list of substrings with split(), and check each substring using a loop.

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 Programming Questions!