← Quiz: Tuples and Sets: all 15 questions
Quiz: Tuples and Sets · Question 5 of 15
What type is x = {}?
What type is x = {}?
- A.set
- B.dict
- C.tuple
- D.list
Answer & explanation
Correct answer: dict
Empty curly braces create an empty dictionary. Use set() for an empty set.
Can you get the rest right without peeking?
Take the timed Quiz: Tuples and Sets quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →