def getInt(text=''):
    """Prompts user for an integer number.
accepts integers
returns the entered integer
other inputs prompt user to re-enter a response"""
    while 1:
        print(text)
        try:
            userInput=int(input('Please enter an integer:'))
            return userInput
        except: print('\nInvalid input - not recognized as an integer\n[Proper response required to exit loop]')