Write a program to reverse a number and check whether it is a palindrome.
Implement reverse_and_check(number) using arithmetic operations rather than converting the number to a string. Return a two-element tuple containing the reversed integer and a Boolean indicating whether the original number reads identically forward and backward.
number.(reversed_number, is_palindrome).A number ending in zero loses that zero when reversed. Treat 0 and every single-digit number as palindromes.
def reverse_and_check(number):