print("Enter 'x' for exit.");
num = input("Enter any number to check for palindrome: ");
if num == 'x':
exit();
else:
number = int(num);
orig = number;
rev = 0;
while number > 0:
rev = (rev*10) + number%10;
number //= 10;
if orig == rev:
print(orig, "is a Palindrome Number.");
else:
print(orig, "is not a Palindrome Number.");
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.