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

What is printed?

print(len({"a": 1, "b": 2, "a": 3}))
  1. 2
  2. 3
  3. 1
  4. TypeError
The repeated key overwrites the earlier one, leaving two entries.
Play Problem Solving ▸