Python program to check a number is palindrome or not

0
13
n=int(input("Please enter a number: "))
temp=n
r=0
while(n>0):
    dig=n%10
    r=r*10+dig
    n=n//10
if(temp==r):
    print("Number is palindrome")
else:
    print("Number is not palindrome")

    Output 1:
           Please enter a number: 131
           Number is palindrome
    Output 2:
           Please enter a number: 17
           Number is not palindrome

इन्हें भी देखें।

Python Programs के लिये यहाँ click करे।

 

 

 

Python program to check a number is palindrome or not program to check a number is palindrome or not in python write a python program to check a number is palindrome or not write a program to check a number is palindrome or not in python palindrome program palindrome program in python program to check whether a number is palindrome or not program to check whether a number is palindrome or not in python program to check whether a number is palindrome or not using loop python program to check whether a number is palindrome or not write a python program to check whether a number is palindrome or not program to check if a number is palindrome or not program to check the number is palindrome or not program to check whether the number is palindrome or not program to check whether the number is palindrome or not in python write a python program to check whether the number is palindrome or not python program to check the number is palindrome or not python program to check whether a number is palindrome or not python program to check whether a number is palindrome or not using while loop python program to check whether a given number is palindrome or not program to check whether a number is palindrome or not python python program to check if a number is palindrome or not python program to check a given number is palindrome or not program to check whether entered number is palindrome or not program to check whether entered number is palindrome or not in python write a python program to check whether entered number is palindrome or not write a program to check whether entered number is palindrome or not write a program to check the entered number is palindrome or not write a program to check a given number is palindrome or not

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here