Lesson 58 of 79 · 15 minutes
Dictionaries: Corner Shop
Run a shop's stock book. Look things up by name, not by position.
This game is part of the full course.You own the full course.
Unlock all 79 Python coding games for $9, once.Opening the game…
Unlock for $9Play now
What you'll learn
- Looking things up by name
- Changing a value
- Adding a new entry
- Checking before you look
- Looking up something that isn't there
Each idea opens with a short narrated video, about 2 minutes in all. Then you put it to work in the game.
The six levels
- Price Check Change it
- Price Rise Copy and type
- New Stock Fill the gap
- Have We Got It? Write it
- No Bread Fix it
- Busy Saturday Boss level
The levels go from changing one word, to writing the code on your own. The boss level changes every time you play.
New to Python? Start with the free games in Module 1.