Lesson 1 of 11 · 7 min
Functions: reusable code
A function is a named block of code that does a job. You write it once and call it whenever you need it — like a recipe you can reuse. Functions keep programs short, organised, and easy to fix.
def drawSquare() → 📝
Write once, call many times
Let’s try it! ✍️
Question 1 of