Daily #9 · 7 October 2026
True arithmetic Easy
What does this print?
print(True + True + True)
Show the answer
C: 3
Why: bool is a subclass of int: True is 1 and False is 0. That is why sum(x > 0 for x in nums) counts the positives.
Daily #9 · 7 October 2026
What does this print?
print(True + True + True)
C: 3
Why: bool is a subclass of int: True is 1 and False is 0. That is why sum(x > 0 for x in nums) counts the positives.