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