Question: Write a program to determine if an input string is a palindrome or not. Note: A palindrome is a word or a sentence that reads

Write a program to determine if an input string is a palindrome or not.

Note: A palindrome is a word or a sentence that reads the same whether read from left to right or right to left.

Test cases:

Input: "abcdef" Output: No, it is not a palindrome.

Input: "abc2cba" Output: Yes, it is a palindrome.

Input: "bannab" Output: Yes, it is a palindrome.

Use Python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!