$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · hard · #48

What is printed?

print(3 * "5" if False else 2 + 3)
  1. 555
  2. 23
  3. 5
  4. 6
The condition is False so the else branch 2 + 3 = 5 runs.
Play Problem Solving ▸