Question: Write function alterString(s) that takes as input a string s and returns a new string such that each vowel (aeiou) occurrence in the original has
Write function alterString(s) that takes as input a string s and returns a new string such that each vowel (aeiou) occurrence in the original has been replaced by 5 consecutive copies of that vowel (with the same case as in the original), and an '$' has been added to the end of the result. For example,
>>> alterString("Our cat is funny.") 'OOOOOuuuuur caaaaat iiiiis fuuuuunny.$' Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
