Question: Suppose that you are required to write a function that receives a string as an input and reverses the order of the alphabetical characters in

Suppose that you are required to write a function that receives a string as an input and reverses the order of the alphabetical characters in the string while keeping the rest of the characters in place.
Example: , input = "Tax-i"
output = "ixa-T"
input = "sar12ra.s"
Your function needs to return an error message for invalid input type and return error message for an input string that does not contain any alphabetical characters in the input string.
Given this information, your task for this quiz is as follows. In a jupyter-notebook, using Python:
Write error classes for the two error types (10 points).
Write test cases for the error types (30 points)
Write test cases for the function itself (30 points
 Suppose that you are required to write a function that receives

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!