Skip to content

Instantly share code, notes, and snippets.

@PushkraJ99
Last active June 5, 2022 15:34
Show Gist options
  • Save PushkraJ99/c1fa768bdfe32c64ea964d42c50fcf62 to your computer and use it in GitHub Desktop.
Save PushkraJ99/c1fa768bdfe32c64ea964d42c50fcf62 to your computer and use it in GitHub Desktop.
Palindrome 3
#Palindrome using Python (Github:-PushkraJ99)
num=int(input("Enter a number:"))
temp=num
rev=0
while(num>0):
dig=num%10
rev=rev*10+dig
num=num//10
if(temp==rev):
print("The number is palindrome!")
else:
print("The number is Not a palindrome!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment