Check whether given number is palindrome or not

n=int(input("enter : " ))
ext=n
rev=0
while(n>0):
mod=n%10
rev=rev*10+mod
n=n//10
if(ext==rev):
print(“its palindrome”)
else:
print(“its not palindrome”)

@kinnukeshiya

correct, keep it up.
Keep Practicing.

num = int(input(“Enter a palindrom no :”)
og=i
rev=0
og==rev
if og==rev
print(“it gives palindrom no”)
else:
print(“it not gives palindrom no”)

@dhanashrip930

Correct, keep it up.
Keep Practicing.