def integer_input(question=""):
    """User input of integer."""
    if question and not question.endswith(" "):
        question += " "
    while True:
        try:
            return int(input("{}Enter an integer: ".format(question)))
        except ValueError:
            print("Not an integer! Please try again...")