Question: Q - 3 Given a string, write a python function to check if it is palindrome or not. A string is said to be a
Q Given a string, write a python function to check if it is palindrome or not. A string is said to be a palindrome if the reverse of the string is the same as the string. For example, "radar" is a palindrome, but "radix" is not a palindrome.
Note: Both "Radar" and "radar" are considered palindromes for this program.
Example :
Program Prompt: Enter a keyword:
User response: 'Apple'
Program prints: 'Not a palindrome!
Example :
Program Prompt: Enter a keyword:
User response: 'Malayalam'
Program prints: 'Yes, this is a palindrome! eed to make exactly like examples I
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
