Check if a number is a palindrome. Need solution in python
Answers
Answered by
0
Answer:
num = input('Enter any number : ')
try:
val = int(num)
if num == str(num)[::-1]:
print('The given number is PALINDROME')
else:
print('The given number is NOT a palindrome')
except ValueError:
print("That's not a valid number, Try Again !")
Explanation:
Similar questions