Neural Sync Active
Programming in Python — Quiz 2 weeks 1–8 prep
Registry Synced
Programming in Python — Quiz 2 weeks 1–8 prep
625 words
3 min read
2026-08-16
Reading compass
Now · Week 1 — introduction to algorithms {#week-1}
Programming in Python · Quiz 2 weeks 1–8
Part of the Quiz 2 prep system. Interactive patterns: Pattern atlas.
Week 1 — introduction to algorithms {#week-1}
Focus: types, expressions, tracing state
Algorithm idea → types → expressions → trace variable updates
Pattern snapshot
| Level | Pattern |
|---|---|
| Easy | Predict final value |
| Medium | Type of expression |
| Hard | Trace with dependencies |
Week 2 — conditionals {#week-2}
Focus: if/elif/else, predicates, truthiness
Predicate → branch choice → elif chain → else default
Pattern snapshot
| Level | Pattern |
|---|---|
| Easy | Which branch runs? |
| Medium | Boundary comparisons |
| Hard | Truthiness trap |
Week 3 — conditionals continued {#week-3}
Focus: nested branches, and/or, decision tables
Compound predicates → nested if → decision table → de Morgan
Pattern snapshot
| Level | Pattern |
|---|---|
| Easy | Compound predicate |
| Medium | Nested branch trace |
| Hard | Decision table to code |
Week 4 — iterations & ranges {#week-4}
Focus: for, while, range(), accumulation
Loop choice → range endpoints → accumulator → termination
Pattern snapshot
| Level | Pattern |
|---|---|
| Easy | Count iterations |
| Medium | Accumulator trace |
| Hard | while with guard |
Week 5 — iterations continued {#week-5}
Focus: nested loops, search, min/max patterns
Outer loop → inner loop → search flag → running min/max
Pattern snapshot
| Level | Pattern |
|---|---|
| Easy | Nested count |
| Medium | Find in sequence |
| Hard | Min with updates |
Week 6 — basic collections {#week-6}
Focus: lists, tuples, mutability, slicing
Sequence types → indexing → slice → mutate list not tuple
Pattern snapshot
| Level | Pattern |
|---|---|
| Easy | Index and slice |
| Medium | Mutate vs share |
| Hard | List algorithms trace |
Week 7 — collections continued {#week-7}
Focus: dictionaries, frequency counting, grouping
Key-value map → lookup → count frequencies → iterate keys/values
Pattern snapshot
| Level | Pattern |
|---|---|
| Easy | Build small dict |
| Medium | Frequency table |
| Hard | Group or invert |
Week 8 — collections & integration {#week-8}
Focus: nested collections, mixed iteration patterns
Nested structures → layered loops → aggregate → choose right collection
Pattern snapshot
| Level | Pattern |
|---|---|
| Easy | Access nested element |
| Medium | Double loop aggregate |
| Hard | Integrate prior patterns |
Original retrieval lab
Pick any week you have not opened this week. Close the note, write its map line from memory, then reopen and fix one word.
Four retrieval checks
- Name one easy pattern family for week 1 and week 8.
- State one trap that appears in both weeks 3 and 6 for this course.
- Link one abstract pattern from the cross-course map to this course.
- Open the exam-eve sprint and complete the block for this course.
Linked References
Ref [1]
Programming in Python · Week 1 — Introduction to algorithms
Ref [2]
Programming in Python · Week 2 — Conditionals
Ref [3]
Programming in Python · Week 3 — Conditionals continued
Ref [4]
Programming in Python · Week 4 — Iterations & ranges
Ref [5]
Programming in Python · Week 5 — Iterations continued
Ref [6]
Programming in Python · Week 6 — Basic collections
Ref [7]
Programming in Python · Week 7 — Collections continued
Ref [8]