Skip to main content
6 day streak
Skip to lesson
CareerPetalPython field guide
Loading progress...
Course contents
PYTHON FIELD GUIDE

Course contents 72 topics / 15 parts

Full course overviewOriginal coding practice / separate server checks

Essentials first, then internals and engineering trade-offs.

All learning paths
THE PYTHON FIELD GUIDE

Don't just learn the syntax.
See the idea.

Small programs. Clear mental models. The confidence to explain why your code works.

Python 3.11+72 topics / 15 parts60 interview questions9 scenarios7 projects
Start with the foundations
YOUR LEARNING LOOP
one concept
many connections
01 Understand02 Predict03 Experiment04 Explain

Learn a little. Connect a lot.

SHORT ON TIME?

Take the core route.

Read the essentials, inspect an example and try a checkpoint. Every lesson has a clear place to stop.

THE DEFAULT / CORE + DEEP DIVE

Go beneath the surface.

Internals, complexity, ownership, edge cases and engineering trade-offs are open by default. Topic level and reading depth are separate choices.

TRANSPARENT COURSE BUILD TRACKER

Follow the full Python upgrade.

72 / 72 topics have authored theory, a relevant visual and guided/transfer practice wired in. 0 topics still need conversion.

366 / 366 concept explanations; 217 guided/transfer tasks; 1305 public checks.

This tracks authoring coverage, not your reading progress or a quality score. Run controls alone do not mark a topic complete. Each batch also needs editorial review, real execution, tests and browser verification.

Track every topic
Whole-course authoring rollout / examples run locally within browser limits
TopicAuthoringTheoryVisualPracticeChecks
Think in small programsauthored5/5Included2 guided / 1 transfer18
Set up a reproducible Python workspaceauthored5/5Included2 guided / 1 transfer18
Names, values and identityauthored5/5Included2 guided / 1 transfer18
Numbers, truth and safe calculationsauthored5/5Included2 guided / 1 transfer18
Strings are sequences, not magicauthored5/5Included2 guided / 1 transfer18
Decisions that read like decisionsauthored5/5Included2 guided / 1 transfer18
Loops without off-by-one surprisesauthored5/5Included2 guided / 1 transfer18
Lists, from useful to understoodauthored10/10Included3 guided / 1 transfer27
Tuples and useful unpackingauthored5/5Included2 guided / 1 transfer18
Dictionaries: model lookup, not positionauthored5/5Included2 guided / 1 transfer18
Sets: membership and uniquenessauthored5/5Included2 guided / 1 transfer18
Deque, Counter and defaultdictauthored5/5Included2 guided / 1 transfer18
Priority queues and sorted searchauthored5/5Included2 guided / 1 transfer18
Functions that keep promisesauthored5/5Included2 guided / 1 transfer18
Transform data without hiding intentauthored5/5Included2 guided / 1 transfer18
Design clear function signaturesauthored5/5Included2 guided / 1 transfer18
Closures, scope and late bindingauthored5/5Included2 guided / 1 transfer18
Recursion, base cases and explicit stacksauthored5/5Included2 guided / 1 transfer18
Files, JSON and resource boundariesauthored5/5Included2 guided / 1 transfer18
Paths, CSV and streaming file pipelinesauthored5/5Included2 guided / 1 transfer18
Regular expressions and structured matchingauthored5/5Included2 guided / 1 transfer18
Dates, durations and timezone-aware timeauthored5/5Included2 guided / 1 transfer18
itertools and functools in practical pipelinesauthored5/5Included2 guided / 1 transfer18
Logging and configuration boundariesauthored5/5Included2 guided / 1 transfer18
Objects that protect a modelauthored5/5Included2 guided / 1 transfer18
Composition, inheritance and superauthored5/5Included2 guided / 1 transfer18
Properties and method kindsauthored5/5Included2 guided / 1 transfer18
Generate values only when neededauthored5/5Included2 guided / 1 transfer18
Decorators that preserve contractsauthored5/5Included2 guided / 1 transfer18
Context managers and deterministic cleanupauthored5/5Included2 guided / 1 transfer18
Python's data model and special methodsauthored5/5Included2 guided / 1 transfer18
Descriptors and attribute lookupauthored5/5Included2 guided / 1 transfer18
Hashing, copying and object lifetimeauthored5/5Included2 guided / 1 transfer18
Imports, module lifecycle and dependency cyclesauthored5/5Included2 guided / 1 transfer18
Class hooks and metaclasses without mysteryauthored5/5Included2 guided / 1 transfer18
Annotations, unions and boundary validationauthored5/5Included2 guided / 1 transfer18
Generics, protocols and typed callablesauthored5/5Included2 guided / 1 transfer18
Threads, races and lock ownershipauthored5/5Included2 guided / 1 transfer18
Processes and CPU-bound workauthored5/5Included2 guided / 1 transfer18
Asyncio, tasks and cancellationauthored5/5Included2 guided / 1 transfer18
Queues, backpressure and bounded workloadsauthored5/5Included2 guided / 1 transfer18
Errors are part of the contractauthored5/5Included2 guided / 1 transfer18
Tests that catch real mistakesauthored5/5Included2 guided / 1 transfer18
Fixtures, mocks and stronger testsauthored5/5Included2 guided / 1 transfer18
Debug failures and make retries safeauthored5/5Included2 guided / 1 transfer18
Sorting and the cost of a choiceauthored5/5Included2 guided / 1 transfer18
Profile time and memory with evidenceauthored5/5Included2 guided / 1 transfer18
CPython execution, references and GCauthored5/5Included2 guided / 1 transfer18
Modules and reproducible environmentsauthored5/5Included2 guided / 1 transfer18
Package and ship a tested command-line toolauthored5/5Included2 guided / 1 transfer18
HTTP clients, timeouts and paginationauthored5/5Included2 guided / 1 transfer18
SQL transactions and secure input boundariesauthored5/5Included2 guided / 1 transfer18
Scenario: changing one row changes every rowauthored5/5Included2 guided / 1 transfer18
Scenario: a function remembers an earlier requestauthored5/5Included2 guided / 1 transfer18
Scenario: a queue becomes slower as it growsauthored5/5Included2 guided / 1 transfer18
Scenario: process a 10 GB report with limited memoryauthored5/5Included2 guided / 1 transfer18
Scenario: the second report is unexpectedly emptyauthored5/5Included2 guided / 1 transfer18
Scenario: an async endpoint stalls every requestauthored5/5Included2 guided / 1 transfer18
Scenario: one bad item hides the rest of a batchauthored5/5Included2 guided / 1 transfer18
Scenario: memory grows after every requestauthored5/5Included2 guided / 1 transfer18
Scenario: a retry duplicates an operationauthored5/5Included2 guided / 1 transfer18
Interview bank: Python foundationsauthored5/5Included2 guided / 1 transfer18
Interview bank: output prediction and debuggingauthored5/5Included2 guided / 1 transfer18
Interview bank: design and language depthauthored5/5Included2 guided / 1 transfer18
Interview bank: concurrency and production reasoningauthored5/5Included2 guided / 1 transfer18
Build a study-session analyserauthored6/6Included2 guided / 1 transfer18
Project: a streaming CSV reportauthored5/5Included2 guided / 1 transfer18
Project: a tested command-line applicationauthored5/5Included2 guided / 1 transfer18
Project: a paginated API clientauthored5/5Included2 guided / 1 transfer18
Project: a bounded concurrent pipelineauthored5/5Included2 guided / 1 transfer18
Project: a small database-backed serviceauthored5/5Included2 guided / 1 transfer18
Project: production-style debugging and refactoringauthored5/5Included2 guided / 1 transfer18
A PATH, NOT A WALL OF DOCUMENTATION

Your Python map

Progress not loaded
PART 01

Getting started

2 topics

PART 02

Values and control flow

5 topics

PART 03

Collections in depth

6 topics

PART 04

Functions and reusable code

5 topics

PART 05

Files and standard library

6 topics

PART 06

Object-oriented Python

3 topics

PART 07

Advanced language features

8 topics

28Advanced language features
IntermediateTutorial

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Generate values only when needed

Understand iteration, exhaustion and the memory cost of materialising.

12 min core +9 min deeper
29Advanced language features
AdvancedTutorial

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Decorators that preserve contracts

Wrap behaviour without losing metadata, signatures or ownership.

14 min core +12 min deeper
30Advanced language features
AdvancedTutorial

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Context managers and deterministic cleanup

Express resource lifetime with with rather than hope.

14 min core +12 min deeper
31Advanced language features
AdvancedTutorial

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Python's data model and special methods

Make objects work naturally with built-in protocols.

14 min core +12 min deeper
32Advanced language features
AdvancedTutorial

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Descriptors and attribute lookup

Understand the mechanism behind properties and managed attributes.

14 min core +12 min deeper
33Advanced language features
AdvancedTutorial

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Hashing, copying and object lifetime

Keep equality contracts consistent and choose ownership deliberately.

14 min core +12 min deeper
34Advanced language features
AdvancedTutorial

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Imports, module lifecycle and dependency cycles

Treat imports as executable architecture, not just file lookup.

14 min core +12 min deeper
35Advanced language features
AdvancedTutorial

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Class hooks and metaclasses without mystery

Know the mechanism and recognise when a simpler design wins.

14 min core +12 min deeper
PART 08

Typing and API design

2 topics

PART 09

Concurrency and async

4 topics

PART 10

Testing and reliability

4 topics

PART 11

Performance and internals

3 topics

PART 12

Building and shipping

4 topics

PART 13

Scenario-based questions

9 topics

53Scenario-based questions
FoundationScenario

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Scenario: changing one row changes every row

A three-row board is created with [[0] * 2] * 3. Updating board[0][0] appears to change all three rows. There is no thread, database or cache involved; the issue is visible in a tiny single-process example.

18 min core +12 min deeper
54Scenario-based questions
FoundationScenario

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Scenario: a function remembers an earlier request

A helper defined as add(value, items=[]) returns entries from an earlier call even though the second caller supplied only one value. The state survives across calls in one process and disappears after a restart.

18 min core +12 min deeper
55Scenario-based questions
IntermediateScenario

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Scenario: a queue becomes slower as it grows

A job consumer stores work in a list and repeatedly calls pop(0). Small tests look fast, but draining a much larger batch takes disproportionately longer even though processing each job is trivial.

18 min core +12 min deeper
56Scenario-based questions
AdvancedScenario

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Scenario: process a 10 GB report with limited memory

A reporting script reads an entire file, splits it into a list and then builds several transformed lists. It is killed for memory usage on a 10 GB input even though the final report contains only a few counters.

18 min core +12 min deeper
57Scenario-based questions
IntermediateScenario

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Scenario: the second report is unexpectedly empty

A generator feeds a total calculation and then a detail report. The total is correct, but the detail report is empty. Restarting the process does not help; each run repeats the same first-success/second-empty pattern.

18 min core +12 min deeper
58Scenario-based questions
AdvancedScenario

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Scenario: an async endpoint stalls every request

An async endpoint calls a blocking library operation. While it runs, unrelated requests stop progressing even though they are implemented with async def. Adding more coroutine tasks does not reduce the stall.

18 min core +12 min deeper
59Scenario-based questions
IntermediateScenario

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Scenario: one bad item hides the rest of a batch

A batch job catches Exception around the whole loop and returns an empty success report after one malformed item. Valid earlier results disappear, later items are not attempted, and operations staff cannot identify which record failed.

18 min core +12 min deeper
60Scenario-based questions
AdvancedScenario

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Scenario: memory grows after every request

A service's memory usage grows after every distinct request even though handlers finish. Calling garbage collection does not restore the expected baseline. Inspection shows a process-global cache with no maximum size.

18 min core +12 min deeper
61Scenario-based questions
AdvancedScenario

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Scenario: a retry duplicates an operation

A client times out after creating a remote order, then retries with a new identifier. The server had committed the first order, so the customer sees two orders. The timeout alone could not tell the client whether the first write happened.

18 min core +12 min deeper
PART 14

Interview preparation

4 topics

62Interview preparation
FoundationInterview

Theory-first lab / 3 guided and transfer tasks, 18 public checks

15 questions with worked examples and answered follow-ups

Interview bank: Python foundations

A structured rehearsal with model explanations, evaluation signals and follow-up constraints. These are original representative questions, not a claimed company interview bank.

30 min core +20 min deeper
63Interview preparation
IntermediateInterview

Theory-first lab / 3 guided and transfer tasks, 18 public checks

15 questions with worked examples and answered follow-ups

Interview bank: output prediction and debugging

A structured rehearsal with model explanations, evaluation signals and follow-up constraints. These are original representative questions, not a claimed company interview bank.

30 min core +20 min deeper
64Interview preparation
IntermediateInterview

Theory-first lab / 3 guided and transfer tasks, 18 public checks

15 questions with worked examples and answered follow-ups

Interview bank: design and language depth

A structured rehearsal with model explanations, evaluation signals and follow-up constraints. These are original representative questions, not a claimed company interview bank.

30 min core +20 min deeper
65Interview preparation
AdvancedInterview

Theory-first lab / 3 guided and transfer tasks, 18 public checks

15 questions with worked examples and answered follow-ups

Interview bank: concurrency and production reasoning

A structured rehearsal with model explanations, evaluation signals and follow-up constraints. These are original representative questions, not a claimed company interview bank.

30 min core +20 min deeper
PART 15

Projects and assessments

7 topics

66Projects and assessments
IntermediateProject

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Build a study-session analyser

Combine validation, collections, functions and tests into one useful project.

25 min core +15 min deeper
67Projects and assessments
AdvancedProject

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Project: a streaming CSV report

Build a CSV reporting tool that totals nonnegative study minutes by topic, understands quoted fields and reports malformed records explicitly. Start with a pure stream-based calculation before adding real input/output files.

40 min core +25 min deeper
68Projects and assessments
AdvancedProject

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Project: a tested command-line application

Create a command that accepts study-minute values, validates the requested operation and prints a deterministic summary. The goal is a testable application boundary rather than a parser hidden inside business logic.

40 min core +25 min deeper
69Projects and assessments
AdvancedProject

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Project: a paginated API client

Implement a pagination core that follows opaque page tokens, rejects repeated tokens and enforces a page budget. Use a deterministic adapter fixture first, then connect a separately tested HTTP adapter with bounded destinations and responses.

40 min core +25 min deeper
70Projects and assessments
AdvancedProject

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Project: a bounded concurrent pipeline

Build a small asynchronous producer/consumer pipeline with bounded pending work, explicit completion acknowledgments and structured task ownership. Make failure and shutdown part of the design rather than only processing the happy path.

40 min core +25 min deeper
71Projects and assessments
AdvancedProject

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Project: a small database-backed service

Build a service layer that validates study sessions and writes them transactionally to an isolated database. Start with an in-memory SQLite repository; an HTTP layer is a separate adapter, not an excuse to mix request parsing into SQL.

40 min core +25 min deeper
72Projects and assessments
AdvancedProject

Theory-first lab / 3 guided and transfer tasks, 18 public checks

Project: production-style debugging and refactoring

Refactor an order-sensitive grouping routine without changing its external contract. Reproduce the original issue with nested or duplicate data, define ownership, then add regression tests before replacing repeated scans with explicit lookup state.

40 min core +25 min deeper
Your account

Loading account...

Sign in to save your work across devices.