Six lessons covered tuples, sets, list comprehensions, dict comprehensions, try / except, and file reading. Eight questions, 80% pass.
| Lesson | Concept | Key syntax |
|---|---|---|
| 22 | Tuples | (a, b), immutable, unpack with x, y = pair |
| 23 | Sets | {a, b, c}, unique by definition; set(list) to dedupe |
| 24 | List comprehensions | [expr for x in iterable] |
| 25 | Dict comprehensions | {k: v for k, v in pairs} |
| 26 | try / except | catch named errors; never bare except: |
| 27 | Reading files | with open("f.txt") as f:; iterate for line in f |
These close out Python Beginner. Two final lessons remain: a synthesis and the post-track confidence check.
Six lessons covered tuples, sets, list comprehensions, dict comprehensions, try / except, and file reading. Eight questions, 80% pass.
| Lesson | Concept | Key syntax |
|---|---|---|
| 22 | Tuples | (a, b), immutable, unpack with x, y = pair |
| 23 | Sets | {a, b, c}, unique by definition; set(list) to dedupe |
| 24 | List comprehensions | [expr for x in iterable] |
| 25 | Dict comprehensions | {k: v for k, v in pairs} |
| 26 | try / except | catch named errors; never bare except: |
| 27 | Reading files | with open("f.txt") as f:; iterate for line in f |
These close out Python Beginner. Two final lessons remain: a synthesis and the post-track confidence check.
Create a free account to get started. Paid plans unlock all tracks.