def get_integer(prompt):
        """Gather user input and convert it to an integer

        Will keep trying till the user enters an interger or until they ^C the
        program.
        """
        while True:
            try:
                return int(input(prompt).strip())
            except ValueError:
                print(Colors.red("Invalid Input!"))
def get_integer(prompt):
        
        while True:
            try:
                return int(input(prompt).strip())
            except ValueError:
                print(Colors.red("Invalid Input!"))
def get_integer ( prompt ) : while True : try : return int ( input ( prompt ) . strip ( ) ) except ValueError : print ( Colors . red ( "Invalid Input!" ) )
Gather user input and convert it to an integer

        Will keep trying till the user enters an interger or until they ^C the
        program.
Gather user input and convert it to an integer