Lesson 78 of 79 · 15 minutes
Writing clean code: Tidy Room
Working code is a messy room. Every clean-up clears the floor, without changing what the code does.
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
- Clear names
- Don't repeat yourself
- Short functions
- Named values
- Helpful comments, and honest ones
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
- What's an x2? Change it
- Say It Once Copy and type
- Name the Job Fill the gap
- What's 60? Write it
- A Comment That Lies Fix it
- The Big Clean-Up 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.