def ask_for_int():

    while True:
        try:
            age = int(input("enter your age = "))
        except(ValueError):
            print("Entered input is not a number")
            continue
        else:
            if(age >= 18):
                print("eligible to vote")
                break
            else:
                print("not eligible to vote")
                break
ask_for_int()
f3516b0ec5c89e9de69c1e8d161eaedc6c9cb7a7
<mask token>

def ask_for_int():
    while True:
        try:
            age = int(input('enter your age = '))
        except ValueError:
            print('Entered input is not a number')
            continue
        else:
            if age >= 18:
                print('eligible to vote')
                break
            else:
                print('not eligible to vote')
                break


<mask token>

def ask_for_int():
    while True:
        try:
            age = int(input('enter your age = '))
        except ValueError:
            print('Entered input is not a number')
            continue
        else:
            if age >= 18:
                print('eligible to vote')
                break
            else:
                print('not eligible to vote')
                break


ask_for_int()

def ask_for_int():

    while True:
        try:
            age = int(input("enter your age = "))
        except(ValueError):
            print("Entered input is not a number")
            continue
        else:
            if(age >= 18):
                print("eligible to vote")
                break
            else:
                print("not eligible to vote")
                break
ask_for_int()