
Python nightlight
Lesson 5 of 6
Python
9-12 yrs, 11-14 yrs
Make an automatic nightlight and learn about sensors and logic.
Key learning:
- I can program a micro:bit using text-based code to make a light that switches on when it gets dark.
- I can explain that sensors are inputs that sense things in the real world such as movement and light.
- I can explain that logic is how computers make decisions in code based on whether things are true or false.
Computer systems:
Input/output
Sensors
Programming:
Selection
Text-based programming
