Lesson 41 of 79 · 15 minutes
Several inputs, defaults and names: Coffee Bar
Every customer wants something different. One function with a few options can handle them all.
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
- More than one parameter
- Adding another option
- Default values
- Naming your arguments
- Arguments in the wrong order
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
- Large Coffee, Please Change it
- Whose Is It? Copy and type
- Milk by Default Fill the gap
- No Milk for Me Write it
- Ann Coffee? Fix it
- Morning Rush 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.