def input_numeric(prompt):
    """Keep prompting the user until the number can be converted"""
    while True:
        try:
            return int(input(prompt))
        except ValueError:
            print('Value entered must be a number.')