the operands of the logical operators should be boolean expressions, but python is not very strict. any nonzero number is interpreted as true.
By Paula Schroeder at Mar 07 2021