Question: use python Design a function that accepts a string as an argument. Assume that the string will contain a single word. The function should use
Design a function that accepts a string as an argument. Assume that the string will contain a single word. The function should use recursion to determine whether the word is a palindrome (a word that reads the same backwards as forward). Hint: Use string slicing to refer to and compare the characters on either end of the string. At each recursive call, print the parameters of the recursive method call. Question V (15 pts) : Write a program that creates an exception class called NumberOutOfRangeException (derived from RuntimeError), designed to be thrown when a number is discovered that has a value x not in range 2000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
