In this lesson
- It starts with a question. A clinic looks up patients by their record number thousands of times a day. Which storage fits?
- The idea you will find. Pick the structure that makes the common case cheap. — Lists keep order and are read start to finish. Dictionaries jump straight to a key but hold no order you can rely on. Choose by asking what the program will do most often — that one question answers nearly every structure decision.
- How you learn it. By doing: sorting.
- Length. 5 short steps. Progress saves on this phone.
Part of Python: Lists & Dictionaries
Choosing how to store data so the thing you do most often is the thing that is easy.