← Quiz: Python Dictionaries: all 15 questions
Quiz: Python Dictionaries · Question 5 of 15
What does len({"a": 1, "a": 2}) return?
What does len({"a": 1, "a": 2}) return?
- A.1
- B.2
- C.3
- D.Error
Answer & explanation
Correct answer: 1
Keys are unique. The second "a" replaces the first, leaving one key.
Can you get the rest right without peeking?
Take the timed Quiz: Python Dictionaries quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →