What is Python's equivalent of && (logical-and) in an if-statement?

logical-and, python

Solution

Use `and` instead of `&&`.

Problem

This doesn't work: ``` if cond1 && cond2: ```

Original source

Related problems