
Python · 3 notebooks · 90 minutes
Python Data Structures
Learn to choose an appropriate structure, check delimiters with a stack, and build a small application with nested dictionaries.
Free · No account·Python basics required·Self-paced
What you'll learn
- ✓Distinguish the uses of a list, dictionary, stack, and queue
- ✓Build a dictionary and distribute the characters of a string
- ✓Compare parenthesis counting with stack-based delimiter checking
- ✓Model a recipe catalog with nested dictionaries and functions
The 3 notebooks
01
Choosing and iterating over data structures
Compare four structures, build prices by size, and separate digits from operators in an expression.
02
From counters to stacks
Find the limitation of simple counting, then use a stack to check nested parentheses and brackets.
03
An application with dictionaries
Create a recipe catalog, add and find a record, then produce a testable list of names.
Skills covered
- · Choosing a data structure
- · Lists and dictionaries
- · Stacks and queues
- · Iteration and accumulators
- · Nested dictionaries
- · Tests with assert
Prerequisites
- · Know how to use Python variables, conditions, loops, and functions
- · No installation: notebooks run online
- · Complete the three notebooks in order