$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #106

What is printed?

print('x'.join([]), len('x'.join([])))
  1. 0
  2. x 1
  3. None 0
  4. TypeError
Joining nothing yields the empty string, so the length is zero.
Play Problem Solving ▸