$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #92

What is printed?

print(sum([True, True, False]))
  1. 2
  2. 3
  3. 1
  4. TypeError
Booleans are integers in Python, so True adds 1.
Play Problem Solving ▸