Question: def upper_vowels (string): ------------------------------------------------------- Converts vowels in a string to upper-case, all other letters to lower-case. Non letters are left unchanged. Vowels include: aeiou.

def upper_vowels(string):

"""

-------------------------------------------------------

Converts vowels in a string to upper-case, all other

letters to lower-case. Non letters are left unchanged.

Vowels include: aeiou.

Use: altered = upper_vowels(string)

-------------------------------------------------------

Parameters:

string - string to process (str)

Returns:

altered - the resulting string (str)

-------------------------------------------------------

"""

# Your code here

return

from t03_functions import upper_vowels

CASES = ('', 'ABC', 'abc', '123', 'a#b!e', 'This is the 3rd sentence.')

for case in CASES:

altered = upper_vowels(case)

print(f'upper_vowels("{case}") -> {altered}')

print()

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