- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
Python Dictionary and Set Quiz
Test how well you know Python dictionaries and sets, from reading keys and using dict methods to set operations and nested JSON-like data.
Intermediate
5 quizzes · 50 questions
about 31 minutes
0/5passed
Category exam
20 mixed questions. 80% earns a certificate.
1
Dictionary Basics
Easy
Create dictionaries, read and change values, and handle missing keys.
#dict#keys-values
10 questions · ~5 min
Not started
Start
2
Dictionary Methods
Medium
Use pop, setdefault, update, copy, views and the merge operator correctly.
#dict#dict-methods
10 questions · ~6 min
Not started
Start
3
Looping over Dicts
Medium
Loop over keys, values and items, and avoid the classic dict loop mistakes.
#dict#loops
10 questions · ~6 min
Not started
Start
4
Sets & Set Operations
Medium
Remove duplicates, test membership and combine sets with union, intersection and more.
#sets#set-operations
10 questions · ~6 min
Not started
Start
5
Nested Data Structures
Hard
Work with dicts inside lists inside dicts, copies, aliasing and JSON round trips.
#nesting#json#interview
10 questions · ~8 min
Not started
Start
No quiz matches. Try another word or tag.