Write a python program to find whether the given string is palindrome or not
Answers
Answered by
0
A palindrome is a string which is same read forward or backwards.
For example: "dad" is the same in forward or reverse direction. Another example is "aibohphobia" which literally means, an irritable fear of palindromes.
hope it helps...mark as a brain list....follow me
For example: "dad" is the same in forward or reverse direction. Another example is "aibohphobia" which literally means, an irritable fear of palindromes.
hope it helps...mark as a brain list....follow me
Answered by
0
Hey there!!
here is the code for it:
word = input()
word = word.lower()
wr = list(word)
wr = wr[::-1]
wr = ''.join(wr)
if word == wr:
print('Yes')
else:
print('No')
Hope my answer helps! :)
Similar questions