code: def format_prompt(prompt=None, default=None, enable_quit=False, quit_string='q',
                        quit_message='(enter q to Quit)'):
          
          if prompt is None:
              return None
          prompt = prompt.rstrip()
          prompt = prompt.rstrip(':')
          if enable_quit:
              prompt = "{0} {1}".format(prompt, quit_message)
          if default:
              prompt = "{0} [{1}]".format(prompt, default)
          return "{0}: ".format(prompt)
docs: Format the prompt.
          :param prompt: the prompt message.
          :param default:  the default answer if user does not provide a response.
          :param enable_quit: specifies whether the user can cancel out of the input prompt.
          :param quit_string: the string whcih the user must input in order to quit.
          :param quit_message: the message to explain how to quit.
          :return: the formatted prompt string.