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
Get step-by-step solutions from verified subject matter experts
