Python AND operator on two boolean lists – how?
and simply returns either the first or the second operand, based on their truth value. If the first operand is considered false, it is returned, otherwise the other operand is returned. Lists are considered true when not empty, so both lists are considered true. Their contents don’t play a role here. Because both lists are … Read more