Question: Write a function called changeLetterCase that takes one string as a parameter and changes all the upper case letters to lower case and vice

Write a function called changeLetterCase that takes one string as a parameter

 and changes all the upper case letters to lower case and vice

Write a function called changeLetterCase that takes one string as a parameter and changes all the upper case letters to lower case and vice versa. The function returns the updated string with the cases swapped. Task 1: if Task 2: Define changeLetterCase function with one string parameter. You can assume that the the arguments of the function will only contain alphabets and will have no numeric values or punctuation Loop through the string to build a new string as described with the cases swapped. Return the new string Define the main function with no arguments Assign a string of your choice to a variable. Don't prompt the user for input Call the changeLetterCase function with the variable you created and print the output Call the main function. We will use a special call for the main function which is shown in the pseudocode below: name main () == 11 main ": Sample Input/Output: >> Case-swapped >> Case-swapped output for the string aBcdeFG is ABCDEfg output for the string XYZ is xyz

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sure heres a Python function called changeLetterCase that swaps the cases of letters in a string and ... View full answer

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