Learn to organize code into reusable functions - the critical skill that separates beginners from intermediate programmers.
You can preview the lesson titles below, but you'll need to enroll to access the full content.
Meet user-defined functions — named, reusable chunks of code. Learn to define functions with def, call them again and again, and discover why 'define before you call' matters.
Give your functions superpowers — pass information IN with parameters so one function can do its job on any name, number, or message you throw at it
Get full access to all 8 lessons in Year 2 Term 3: Functions.
Book a Class →Learn the difference between print and return — how to hand a value back to your program, store it in a variable, and use it in maths, f-strings, and decisions
Discover where variables live and die (local vs global), learn the golden rules of good function design, and refactor a messy program into tidy, well-named functions
Make your functions a TEAM — functions that call other functions, default parameter values, and a menu that routes to a different function per choice (the exact skill behind next week's Text Adventure)
Plan and scaffold your own Text Adventure game. Learn the engine pattern — each scene is a function that returns the name of the next scene — story-map it on paper, and build a working 2-3 scene adventure you'll finish next week
Build a complete, polished multi-scene text adventure using the scene-function engine — with an inventory that unlocks choices, gated paths, and both winning and losing endings, all without a single crash
Term 3 finale — polish and play-test your Text Adventure, give peer feedback, ace a fun functions quiz, and celebrate finishing the Functions term