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-3 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 1:
Program Prompt: Enter a keyword:
User response: 'Apple'
Program prints: 'Not a palindrome!'
Example 2:
Program Prompt: Enter a keyword:
User response: 'Malayalam'
Program prints: 'Yes, this is a palindrome!' eed to make exactly like examples
 Q-3 Given a string, write a python function to check if

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To check if a given string is a palindrome you can create a Python function Heres how you can achiev... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!