1 2 3 4 5 6
def all_def(props): return all(bool(v) for v in props) def all_notdef(props): return all(not v for v in props)