Session 4: Variables
Recap (5 min)
Variables (15 min)
- what are variables? (boxes to store information, different types for different things)
- basic types: int, float, bool
- what can we do with variables (put something in the box, see what's in the box)
- assignment
- storing function outputs in variables
- comparison
- using variables as function inputs
Practical task (60-70 min)
- develop a lock with a PIN code
- compare remote input (3-4 digits) with expected code
- indicate correctness with and LED
Locoboard (if time allows)
- show locoboard, explain what we can do with it