logo CodeStepByStep logo

pig_latin2

Language/Type: Python file input
Author: Nick Troccoli (on 2017/07/08)

Write a function named pig_latin2 that is a modified version of the preceding pig_latin problem. In this modified version, if the word starts with constants, move all constants up to the first vowel (not just the first consonant) to the end, and append "ay". For example, the word "scram" would become "amscray".

Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.