π¦· Fun with Functions! π
Functions help us **repeat tasks easily**. Letβs see how with brushing teeth! π
π What is a Function?
A function is like a **magic recipe** π©. Instead of saying all the steps **every time**, we put them **inside a function** and just **call it** when needed!
Imagine if you had to **explain how to brush your teeth** every day:
- 1οΈβ£ Pick up the toothbrush
- 2οΈβ£ Put toothpaste on it
- 3οΈβ£ Brush up & down
- 4οΈβ£ Rinse & smile! π
Instead of writing these steps every day, we **put them in a function** and just say: "Brush Teeth!"
π‘ Click to Run the Function!
We've written a function for brushing teeth. Just click the button! πͺ₯
Output:
π¦· Brushing Teeth Steps
Watch as we brush our teeth step-by-step! πͺ₯
