Checking for an empty list in Python
Briefly

Evaluating truthiness is a preferred method among Python users to check for an empty list because an empty list is considered falsey, while a non-empty list is truthy. Using the 'not' operator can also effectively determine if a list is empty.
Python's design emphasizes truthiness checks in if statements for collections. When an object is passed to an if statement, Python checks its truthiness, making truthiness evaluations a more idiomatic approach than checking list length.
Read at Pythonmorsels
[
]
[
|
]