Skip to content
Codewilds

Lesson 22 of 34 · Dictionaries & Sets

Quiz: Python Dictionaries and Sets

Quizeasy10 XP1 min read

Dictionaries and sets are built on the same idea — hashing — which is what makes looking up a key or checking membership so fast. In this chapter you learned how to read and update dictionaries safely with get(), setdefault() and pop(), how to loop over keys, values and items, how sets remove duplicates and combine with |, &, - and ^, and how comprehensions build both in one line.

Answer these six questions, then go and face the chapter boss.

What this quiz covers

The questions check what you learned in the Dictionaries & Sets chapter of Learn Python. Not sure about a topic? Review its lesson first:

Keep learning

Need a quick reminder? The Python cheat sheet has every topic of Learn Python on one page.

Lesson last updated on .

Take the quiz ↓
Quiz+10 XP

Lesson 22 is part of the full course. The first 8 lessons are free.

Premium lesson

Unlock the full Learn Python course

  • All 34 lessons, bosses and quizzes — lifetime access
  • One payment of $35, no subscription
  • Finish within 30 days and claim $10.50 (30%) back
Play the 8 free lessons

Want more than one course?

The All-Access Pass unlocks all 8 courses and every new one we release, for $120 once.