Track 6 · Lesson 12 of 12
Choosing a structure: a gradebook project
Weigh lists, tuples, dictionaries and sets against each other, then build a class gradebook step by step.
You will be able to
- Choose between a list, tuple, dictionary and set from the questions a program needs to answer
- Explain the trade-offs: order, uniqueness, lookup by key and speed of membership tests
- Combine structures, such as a dictionary of lists, to model a real problem
- Build a small gradebook in milestones, handling invalid scores, missing students and ties
Included with a Formula Quest membership
It has 5 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.
View Formula Quest memberships
Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.