Question: Python question: Write a function is_palindrome() that accepts a string as argument and returns True or False indicating whether the string is a palindrome or
Python question:
Write a function is_palindrome() that accepts a string as argument and returns True or False indicating whether the string is a palindrome or not. A palindrome is a string that can be read the same way forward and backward. Your function does not need to convert between lower and upper case characters and needs to check only for an exact match including case. For example, the string 'madam' is a palindrome but the string 'Madam' is not. You are not allowed to generate a new string in your implementation of this function. Rather, you should walk through the string to determine whether it is a palindrome or not.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
