Question: Complete the change_case(text) function that takes a single string parameter text. The function returns a new string where the vowels in the parameter text are

 Complete the change_case(text) function that takes a single string parameter text.

Complete the change_case(text) function that takes a single string parameter text. The function returns a new string where the vowels in the parameter text are all in uppercase, and the consonants in the parameter text are all in lowercase. Non-alphabetical characters remain unchanged. Some examples of the function being called are shown below. For example: Test Result Damir --> dAmte text - "Danir" new text = change_case(text) print(text, -->", new_text) Hello World --> h110 world text = "Hello World" new_text change_case(text) print(text, "", new_text) Answer: (penalty regime: 0, 6, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50 %) Reset answer 1 [def change_case(text): 2 consonants - "bedfghjklmnpqrstvwxyz 3 vowels - "aeiou

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!