← All tracks
Crescendo Academy — Python Quest Preview
Ocean Rescue: Variables
A real assignment from our Python Quest course, rebuilt step by step in your browser.
What is a variable?
- A variable is a labeled box that holds a value — a number, a color, a word — that your code can read and change.
- Instead of writing
90 everywhere in your code, you write SUB_WIDTH once. Change that one line, and every part of the game that uses it updates automatically.
- This is the very first idea every programmer learns — and almost everything else in code is built on top of it.
What you'll build
- You'll start with an empty ocean and a plain submarine — no movement, no game yet.
- Over 10 short steps, you'll turn on movement, treasure, trash, lives, a timer, and difficulty — by editing real variables, one at a time.
- By the last step, you'll have rebuilt the actual Ocean Rescue game taught in Python Quest.
Start Building →