Available now · no registration
Three lines that turn on a light
No need to memorise definitions first. Change one number, predict what will happen and test it in our public mini-scene.
This is a standalone example of the WHY2MAKE approach. The full Academy is being prepared for 1 January 2027 for ages 7–9, 10–12 and 13–15.
lamp = Nightlight("Quiet light")
lamp.warm = 60
lamp.on()1. Find the number that changes the result
The first line creates a night light called “Quiet light”. The second sets its warm-light brightness to 60. The third turns it on. These commands belong to this learning scene; ordinary Python without this special environment does not create a night light.
2. Predict before running
What happens if you replace 60 with 20? Or 80? Discuss the answer before running: will the light get brighter, dimmer or turn off? Open the night light, select the number, change it and run the code.
3. Test the limits
Try 0 and 100, then 101. The scene accepts brightness from 0 to 100 and explains an out-of-range value. A wrong number is a chance to understand the rule, not a reason to fear the next attempt.
What to ask afterwards
“Which line changes the brightness? What did you expect to see? Which number would you choose for reading, and which for a quiet evening light?” What matters is the child’s explanation in their own words.
What your child explores
The link between a command and an action, a number’s value and an allowed range. Ages 7–9 can start by observing with an adult; ages 10–12 can read commands and explain changes; ages 13–15 can devise their own boundary checks.