code: def chooseMany(choices):
      'Return list of `choices` elements (if list) or values (if dict).'
      if isinstance(choices, dict):
          choosed = input('/'.join(choices.keys()) + ': ', completer=CompleteKey(choices)).split()
          return [choices[c] for c in choosed]
      else:
          return input('/'.join(str(x) for x in choices) + ': ', completer=CompleteKey(choices)).split(f chooseMany(choices):
      'Return list of `choices` elements (if list) or values (if dict).'
      if isinstance(choices, dict):
          choosed = input('/'.join(choices.keys()) + ': ', completer=CompleteKey(choices)).split()
          return [choices[c] for c in choosed]
      else:
          return input('/'.join(str(x) for x in choices) + ': ', completer=CompleteKey(choices)).split()
docs: Return list of `choices` elements (if list) or values (if dict).