PYTHON PROGRAM TO CHECK FOR PALINDROME!!

Words
15
Reading
1 min
Listen
Play
7y
Text=input("Enter a text you desired: ")
Reverse_text=Text[::-1]
if Text==Reverse_text:
    print("The given string is a palindrome")
else:    
    print("The given string is not a palindrome")

A sample of output is provided as below:

Screenshot_2.png

You can run this code online here.

PYTHON PROGRAM TO CHECK FOR PALINDROME!! | Ecency