Lesson 43 of 79 · 15 minutes
print versus return: Quality Check
Inspector functions check each product. Only a returned answer ever reaches the sorting arm.
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
- Showing isn't the same as giving back
- Returning True or False
- Using an answer in an if
- Passing one answer to another
- A function that gives back None
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
- Hand It Over Change it
- Is It OK? Copy and type
- Sort It Fill the gap
- Clean, Then Check Write it
- Everything's Rejected Fix it
- A Whole Batch 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.