Commit 134568a2 authored by Manasani suraj's avatar Manasani suraj

palindrome

parent 8d891603
num=input("enter any number")
rev_num=reversed(num)
if list(num)==list(rev_num):
print("palindrome")
else:
print("not a palindrome")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment