Closed Jaymon closed 5 years ago
Another thing that should happen, choices like:
choices={"yes": ["y", "yes"], "no": ["n", "no"]}
should be able to be concisely written as:
choices={"yes": ["y"], "no": ["n"]}
Because the keys would be combined with the values for purposes of validating the input
For example, to do a yes or no:
would be cool if you could do something like:
and would be even better if you could also do:
So the
choices
dict would have keys that are the value that would be returned if the value of the key is equal to input.