What is a Palindrome ?
A palindrome is a symmetrical word, (i.e. it reads the same backward as forwards).
For example:
racecar
madam
radar
Now that we know what is a palindrome we can write a code in Python for the same.
def palindrome(word):
if len(word)<=1:
re...
smavisswag.hashnode.dev1 min read