Commit 269a42a5 authored by NENAVATH SRIKANTH's avatar NENAVATH SRIKANTH

Palindrome

parent 07cde6e3
Pipeline #14861 passed with stage
in 14 seconds
num=input("enter any number")
rev_num=reversed(num)
if list(num)==list(rev_num):
print("palindrome")
else:
print("not a palindrome")
\ No newline at end of file
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