Question: Create a program that translates English to Pig Latin python.Convert the English to lowercase before translating. Remove any punctuation characters before translating. Assume that words
Create a program that translates English to Pig Latin python.Convert the English to lowercase before translating. Remove any punctuation characters before translating. Assume that words are separated from each other by a single space. If the word starts with a vowel, just add way to the end of the word. If the word starts with a consonant, move all of the consonants that appear before the first vowel to the end of the word, then add ay to the end of the word. If a word starts with the letter y, the y should be treated as a consonant. If the y appears anywhere else in the word, it should be treated as a vowel. Save the file with the filename pig_latin_XXX.py where XXX is either your initials or your last name. Note: There are no official rules for Pig Latin. Most people agree on how words that begin with consonants are translated, but there are many different ways to handle words that begin with vowels.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
