Logical operators

Python supports logical operators AND, OR, and NOT:

These only evaluate their second argument if needed for their outcome, as shown in the following screenshot: