LEVEL 2Comparison & logic
PYTHON, PLOT TWIST! Q19
Truthiness of different values
What’s the output? Think first. Trust your brain.
question_19.pyPython 3
1values = [2 0, 1, "", "0",3 [], [0], None, False4]5for value in values:6 print(bool(value), end=" | ")
Empty list: no thoughts.

List with zero: still invited.
a very python moment