def safe_input():
    '''Prompts the user for an integer and return only when a valid value
       is entered
    '''
    while True:
        try:
            guess = int(input(prompt))
            return guess
        except __HOLE__:
            print("You must enter a valid value.")
dataset/ETHPy150Open aroberge/pyproj/guess_number/guess_2.py/safe_input