How to use Python’s “all” and “any” built-ins