def isPalin(n,rev=0):

    if n==0:
        return rev

    rev =rev*10+(n%10)
    rev= reverse(n//10,rev)
    return rev

def isPalin(num):
    if num==reverse(num):
        return 1
    else:
        return 0


n=101
print(reverse(n))
print(isPalin(n))
50eb3b794a4e908d5a3e0195b452a249cf89f6de
<mask token>

def isPalin(n, rev=0):
    if n == 0:
        return rev
    rev = rev * 10 + n % 10
    rev = reverse(n // 10, rev)
    return rev


def isPalin(num):
    if num == reverse(num):
        return 1
    else:
        return 0


<mask token>

def isPalin(n, rev=0):
    if n == 0:
        return rev
    rev = rev * 10 + n % 10
    rev = reverse(n // 10, rev)
    return rev


def isPalin(num):
    if num == reverse(num):
        return 1
    else:
        return 0


<mask token>
print(reverse(n))
print(isPalin(n))

def isPalin(n, rev=0):
    if n == 0:
        return rev
    rev = rev * 10 + n % 10
    rev = reverse(n // 10, rev)
    return rev


def isPalin(num):
    if num == reverse(num):
        return 1
    else:
        return 0


n = 101
print(reverse(n))
print(isPalin(n))

def isPalin(n,rev=0):

    if n==0:
        return rev

    rev =rev*10+(n%10)
    rev= reverse(n//10,rev)
    return rev

def isPalin(num):
    if num==reverse(num):
        return 1
    else:
        return 0


n=101
print(reverse(n))
print(isPalin(n))