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 "Taxi
output "ixaT
input "sarras
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 jupyternotebook, using Python:
Write error classes for the two error types points
Write test cases for the error types points
Write test cases for the function itself points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
