LEVEL 1Precedence & evaluation
PYTHON, PLOT TWIST! Q09
Boolean values in arithmetic
What’s the output? Think first. Trust your brain.
question_09.pyPython 3
1print(True + True * False + 5)2print((True + 2) * (False + 4))3print(True ** 3 + False)
True is pulling double duty.

Boolean by day. Integer by night.
a very python moment