🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Tuples and Sets: all 15 questions

Quiz: Tuples and Sets · Question 5 of 15

What type is x = {}?

What type is x = {}?

  1. A.set
  2. B.dict
  3. C.tuple
  4. 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 →