Python program to check if number is palindrome or not
If number can be read in both direction in same order then the number is palindrome number in nature.
In simple words, if a number is reversed and its still retains same order as that of original number then the number is said to be palindrome number.
E.g. The output obtained by reversing number 121 matches the original number hence, 121 is palindrome number.
Palindrome number logic in Python programming.
logic to check palindrome number in python
Author : ITVoyagers (https://itvoyagers.in)
Date :21st December 2020
Description : Python program to find the given number is palindrome or not.
num=int(input("Enter a number"))
print (n1, "is palindrome")
print (n1, "is not palindrome")
Enter a number121
121 is palindrome
Enter a number120
120 is not palindrome
Connect with us on following platforms
We are aiming to explain all concepts of python in easiest terms as possible.
PRACTICALS/PRACTICE PROGRAM IN PYTHON
CHECKOUT OTHER RELATED TOPICS
CHECKOUT OTHER QUIZZES
|Quizzes on File Handling|
|Easy quiz on file handling in python part 1|
|Easy quiz on file handling in python part 2|
|Quizzes on Exception Handling|
|Easy quiz on Exception Handling in python part 1|
|Easy Quiz on Exception Handling in python part 2|
|Quizzes on Regular Expressions|
|Easy Quiz on Regular Expression in python part 1|
|Quizzes on Python concepts coming soon…|
|Python basic quiz|
|New and easy python quiz basic part 1|
|New and easy python quiz (basic) part 2|
|New and easy python quiz (basic) part 3|
|Python practice quiz set|
|Best Practice Quiz Set on Python Programming Part 1|
|Best Practice Quiz Set on Python Programming Part 2|
|Best Practice Quiz Set on Python Programming Part 3|
|Best Practice Quiz Set on Python Programming Part 4|
|Best Practice Quiz Set on Python Programming Part 5|