Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
["Any object can be tested for truth value, for use in an if or while condition or as operand of the Boolean operations below."](https://docs.python.org/3/library/stdtypes.html#truth-value-testing)
# Common mistake to avoid
For True, False, None we use is and is not for comparisons. They are objects and not values thus we need to use is and is not.
Correct
```python
if a: # "a is True" is shortend to "a" due to the official Python style guidelines
"There are eight comparison operations in Python. They all have the same priority (which is higher than that of the Boolean operations). Comparisons can be chained arbitrarily; for example, x <y<=zisequivalenttox<yandy<=z,exceptthatyisevaluatedonlyonce(butinbothcaseszisnotevaluatedatallwhenx<yisfoundtobefalse)."
"This table summarizes the comparison operations:"