When working with conditional statements in Python, it’s
important to understand what values evaluate to
True and what values
evaluate to False. While
some values are obviously
True, such as any non-zero
number or a non-empty string, there are a few other values
that can sometimes trip up programmers. In particular, the
values None,
"False", and the
number 0 are all examples
of values that evaluate to
False in Python.