Question: Assume that you are testing a function called palindrome (), which accepts a string as a parameter. The function is supposed to return True if
Assume that you are testing a function called palindrome (), which accepts a string as a parameter. The function is supposed to return True if the string is a palindrome and False otherwise. A palindrome is a word or phrase that reads the same backwards as forwards. For example the string "eevee" is a palindrome. However, suppose you know that the function contains an error, and that there will be some arguments for which the function will return the wrong value. Write a function call to palindrome () using an argument that you think would make a good test value. You may have to try several different test values before you find one that reveals the error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
