Answered step by step
Verified Expert Solution
Link Copied!

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 = "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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

LO6 Describe how individual pay rates are set.

Answered: 1 week ago