Question: phython program Write a Python function called to upper that accepts a string as parameter. Then the function calls the is_lower (from problem 2) to

phython programphython program Write a Python function called to upper that accepts a

Write a Python function called to upper that accepts a string as parameter. Then the function calls the is_lower (from problem 2) to determine if all the characters in the string are in lower case. If the return value from is_lower is False, then the to_upper function returns an empty string. Otherwise, converts all the characters in the string to upper case and returns it. Sample Input: to_upper("abcd") Output: ABCD" Sample input: to_upper(ABcd) Output: un

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!