From 87df959cd2fa5a5c51bca3ffedcc04268c068d4f Mon Sep 17 00:00:00 2001 From: Maxim Tatarchenko Date: Sat, 28 Sep 2024 10:45:32 +0200 Subject: [PATCH] session 4 --- docs/courses.md | 1 + docs/sessions/s4.md | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 docs/sessions/s4.md diff --git a/docs/courses.md b/docs/courses.md index baf4f82..768a913 100644 --- a/docs/courses.md +++ b/docs/courses.md @@ -13,6 +13,7 @@ This course focuses much heavier on programming. We are going to discuss some fu - [Session 1: Introduction](sessions/s1.md) - [Session 2: Loops & conditionals](sessions/s2.md) - [Session 3: Practical session](sessions/s3.md) +- [Session 4: Variables](sessions/s4.md) ### Topics diff --git a/docs/sessions/s4.md b/docs/sessions/s4.md new file mode 100644 index 0000000..ae7e962 --- /dev/null +++ b/docs/sessions/s4.md @@ -0,0 +1,23 @@ +# 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 variable (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