Six lessons covered branching (if / elif / else), boolean composition (and / or / not), lists with indexing, mutating lists with append and testing membership with in, and for loops. Eight questions, 80% pass.
| Lesson | Concept | Key syntax |
|---|---|---|
| 8 | if / else | if cond: ... colon + 4-space indent |
| 9 | elif | first matching branch wins |
| 10 | and / or / not | English words; not tightest, then and, then or |
| 11 | Lists | [a, b, c]; numbers[0] first, numbers[-1] last |
| 12 | List operations | .append(x) modifies in place; len(list); x in list |
| 13 | for loops | for item in iterable: runs body once per item |
Week 3 builds on these for dicts, functions, and parsing.
Create a free account to get started. Paid plans unlock all tracks.
Six lessons covered branching (if / elif / else), boolean composition (and / or / not), lists with indexing, mutating lists with append and testing membership with in, and for loops. Eight questions, 80% pass.
| Lesson | Concept | Key syntax |
|---|---|---|
| 8 | if / else | if cond: ... colon + 4-space indent |
| 9 | elif | first matching branch wins |
| 10 | and / or / not | English words; not tightest, then and, then or |
| 11 | Lists | [a, b, c]; numbers[0] first, numbers[-1] last |
| 12 | List operations | .append(x) modifies in place; len(list); x in list |
| 13 | for loops | for item in iterable: runs body once per item |
Week 3 builds on these for dicts, functions, and parsing.