def getInt(inputtext=''):
    """Prompts the user for an integer.
Returns the integer entered by the user.
If a non-integer is entered, the user is prompted
to re-enter a value until an integer is submitted.
"""
    while 1:
        try:
            outputint=int(input(inputtext + '\nPlease Enter an Integer:\n'))
            return outputint
        except: print('INVALID ENTRY')