code: def prompt_choices(name, choices, default=None, no_choice=('none',)):
      
  
      _choices = []
      options = []
  
      for choice in choices:
          options.append(choice)
          _choices.append(choice)
  
      while True:
          rv = prompt(name + '? - (%s)' % ', '.join(options), default)
          rv = rv.lower()
          if rv in no_choice:
              return None
          if rv in _choices:
              return rv
docs: Grabs user input from command line from set of provided choices.
  
      :param name: prompt text
      :param choices: list or tuple of available choices.
      :param default: default value if no input provided.
      :param no_choice: acceptable list of strings for "null choice"