code: def input_options(self, options, prompt='Select option', default=None):
          
          check_options = [x.lower() for x in options]
          while True:
              response = input('%s [%s]: ' % (prompt, ', '.join(options))).lower()
              if response in check_options: return response.strip()
              elif response == '' and default is not None:
                  return default.lower().strip()
docs: Helper to prompt the user for input on the commandline.