Question: Using Python Write the function pigglyWiggly that translates a single lowercase word into pig Latin. It takes a string w as input, where w is
Using Python
Write the function pigglyWiggly that translates a single lowercase word into pig Latin. It takes a string w as input, where w is a single lowercase English word (so it contains only alphabetic letters). It returns a string, w in pig Latin.
We will use a simplified version of pig Latin, as follows. If the word begins with a consonant, move the leading consonant to the end of the word and add ay as a suffix. If the word begins with a vowel, add yay as a suffix. We will define y to be a vowel (just like in the earlier question).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
