def checkeven(val):
    if val%2==0:
        return True
    else:
        return False
def checkodd(val):
    if val%2!=0:
        return True
    else:
        return False
choice=int(input("Tell whether you want to check even or odd\n1.even\n2.odd\n"))
num=int(input("Enter number to check: "))
if choice==1:
    result_even=checkeven(num)
    print(result_even)
elif choice==2:
    result_odd=checkodd(num)
    print(result_odd)
7fdcbf73086b3e1cc24b3bffe66d725d7f7c6139
def checkeven(val):
    if val % 2 == 0:
        return True
    else:
        return False


<mask token>

def checkeven(val):
    if val % 2 == 0:
        return True
    else:
        return False


def checkodd(val):
    if val % 2 != 0:
        return True
    else:
        return False


<mask token>

def checkeven(val):
    if val % 2 == 0:
        return True
    else:
        return False


def checkodd(val):
    if val % 2 != 0:
        return True
    else:
        return False


<mask token>
if choice == 1:
    result_even = checkeven(num)
    print(result_even)
elif choice == 2:
    result_odd = checkodd(num)
    print(result_odd)

def checkeven(val):
    if val % 2 == 0:
        return True
    else:
        return False


def checkodd(val):
    if val % 2 != 0:
        return True
    else:
        return False


choice = int(input(
    """Tell whether you want to check even or odd
1.even
2.odd
"""))
num = int(input('Enter number to check: '))
if choice == 1:
    result_even = checkeven(num)
    print(result_even)
elif choice == 2:
    result_odd = checkodd(num)
    print(result_odd)

def checkeven(val):
    if val%2==0:
        return True
    else:
        return False
def checkodd(val):
    if val%2!=0:
        return True
    else:
        return False
choice=int(input("Tell whether you want to check even or odd\n1.even\n2.odd\n"))
num=int(input("Enter number to check: "))
if choice==1:
    result_even=checkeven(num)
    print(result_even)
elif choice==2:
    result_odd=checkodd(num)
    print(result_odd)