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 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
Sure heres a Python function called changeLetterCase that swaps the cases of letters in a string and ... View full answer
Get step-by-step solutions from verified subject matter experts
