Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started