palindrome.py 133 Bytes
Newer Older
nishanth's avatar
nishanth committed
1 2 3 4 5 6
num=input("enter any number")
rev_num=reversed(num)
if list(num)==list(rev_num):
print("palindrome")
else:
print("not a palindrome")