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

What is printed?

print('ab' * 0, len('ab' * 0), [] * 5)
  1. 0 []
  2. ab 2 []
  3. 0 [[]]
  4. None 0 []
Multiplying a sequence by zero empties it, so nothing is printed for it.
Play Problem Solving ▸