concept any() in category python
appears as: ny()

This is an excerpt from Manning's book Tiny Python Projects: Learn coding and testing with puzzles and games.
Most of the validation can be handled by using
argparseeffectively. Both the--playerand--celloptions can be handled by thechoicesoption. It’s worth taking time to appreciate the use ofany()andall()in this code:if any([args.player, args.cell]) and not all([args.player, args.cell]): parser.error('Must provide both --player and --cell')