Python for Data People: From Notebooks to Real Programs
Write, run and organize real Python programs, and be ready to start building data apps and APIs.
You go at your own pace, with your Maestro beside you, 1:1, through the whole course: ask it anything, and it asks you questions too.
63 skills · 8 modules
$25
Comes with your Maestro, 1:1, for the whole course.
What will you be able to do?
Each box is a skill. The base is at the bottom, recognizing and explaining, and you work your way up to building something of your own and judging what works and why. Hover over a box to see what it builds on. Click it to see where I teach it and how your Maestro checks it.
- Evaluate
- Synthesize
- Analyze
- Apply
- Understand
- Remember
Evaluate
Choose a list, tuple, dict or set for a job and justify the choice
Where I teach it: Collections · Choosing a collection
Builds on:
- Create, index, slice and change lists (append, insert, remove, sort)
- Use tuples for fixed groups of values and unpack them into separate names
- Create, read, update and loop over dictionaries by key
- Use sets to remove duplicates and test membership
- Explain mutability: which types can change in place (list, dict, set) and which cannot (int, str, tuple)
Your Maestro asks you to judge when it fits and why and saves it as evidence when you do.
Choose whether a piece of work belongs in a notebook, a script or a module, and justify the choice
Where I teach it: From script to project · Notebook, script or module?
Builds on:
- Explain how a script differs from a notebook: it runs top to bottom in a fresh process every time, with no hidden state from earlier cells
- Split a program into your own modules and import between them
- Diagnose why code that works in a notebook fails as a script: a different interpreter, a missing package or another working directory
Your Maestro asks you to judge when it fits and why and saves it as evidence when you do.
Synthesize
Design a small multi-file program (functions, your own module, a main entry point and its own environment) that solves a stated problem
Where I teach it: From script to project · Capstone: a small multi-file program
Builds on:
- Turn repeated, copy-pasted code into a reusable function with clear parameters
- Split a program into your own modules and import between them
- Use if __name__ == "__main__" to separate a module's reusable code from what runs as a script
- Create a virtual environment for a project and install packages into it
- Handle an expected error with try/except, catching a specific exception rather than everything
- Record a project's dependencies (pyproject.toml or requirements.txt) so someone else can recreate its environment
Your Maestro asks you to build something of your own with it and saves it as evidence when you do.
Analyze
Compare a Python loop with a vectorized DataFrame or SQL operation and explain why the loop handles one item at a time
Where I teach it: Loops · Loops vs vectorized pandas and SQL
Builds on:
- Build up a result inside a loop with an accumulator: a running total, a growing list or a dict of counts
Your Maestro asks you to break a problem down with it and saves it as evidence when you do.
Diagnose a failing program from its traceback and the common error types (NameError, TypeError, KeyError, IndexError, AttributeError)
Where I teach it: Errors and your own objects · Reading tracebacks and common errors
Builds on:
- Read a traceback from the bottom up to find the error type, its message and the line that raised it
- Create, index, slice and change lists (append, insert, remove, sort)
- Create, read, update and loop over dictionaries by key
- Explain that every value is an object with a type, attributes and methods reached with a dot
Your Maestro asks you to break a problem down with it and saves it as evidence when you do.
Diagnose why code that works in a notebook fails as a script: a different interpreter, a missing package or another working directory
Where I teach it: From script to project · Import errors and "it works in my notebook"
Builds on:
- Create a virtual environment for a project and install packages into it
- Explain how a script differs from a notebook: it runs top to bottom in a fresh process every time, with no hidden state from earlier cells
- Diagnose a ModuleNotFoundError by tracing where Python looks for an import: the script's folder, then the active environment's packages
- Build file paths with pathlib and resolve relative paths against the working directory
Your Maestro asks you to break a problem down with it and saves it as evidence when you do.
Diagnose a ModuleNotFoundError by tracing where Python looks for an import: the script's folder, then the active environment's packages
Where I teach it: From script to project · Import errors and "it works in my notebook"
Builds on:
- Import modules, names from modules and aliases, and explain the namespace each import creates
- Split a program into your own modules and import between them
- Read a traceback from the bottom up to find the error type, its message and the line that raised it
- Explain what a package, a package installer (pip or uv) and a virtual environment are, and why each project gets its own environment
Your Maestro asks you to break a problem down with it and saves it as evidence when you do.
Describe in plain language what an unfamiliar Python script does, function by function
Where I teach it: From script to project · Reading code you didn't write
Builds on:
- Define a function with def, parameters and a return value
- Repeat work over each item of a collection with a for loop
- Branch a program with if, elif and else
- Import modules, names from modules and aliases, and explain the namespace each import creates
Your Maestro asks you to break a problem down with it and saves it as evidence when you do.
Apply
Run a Python script from the terminal and read the output it prints
Where I teach it: Your first program · Run your code: in the app, or on your own machine
Builds on:
- Distinguish the Python interpreter that runs code, the editor where you write it and the terminal where you start it
- Explain that the Python interpreter reads a program's text and runs it statement by statement, top to bottom
Your Maestro asks you to use it on a new case and saves it as evidence when you do.
Display values in a script with print(), knowing a script shows nothing a notebook would have displayed automatically
Where I teach it: Your first program · Print what you mean
Builds on:
- Run a Python script from the terminal and read the output it prints
- Explain how a script differs from a notebook: it runs top to bottom in a fresh process every time, with no hidden state from earlier cells
Your Maestro asks you to use it on a new case and saves it as evidence when you do.
Assign and reassign variables and predict what each name refers to after every line
Where I teach it: Values and names · Values, types and names
Builds on:
- Explain that a variable is a name bound to an object, not a box that holds a value
- Name Python's core types (int, float, str, bool and NoneType) and recognize their values, including None, in code
Your Maestro asks you to use it on a new case and saves it as evidence when you do.
Compute with arithmetic operators (including /, // and %) and convert between types with int(), float() and str()
Where I teach it: Values and names · Numbers and converting types
Builds on:
- Name Python's core types (int, float, str, bool and NoneType) and recognize their values, including None, in code
- Assign and reassign variables and predict what each name refers to after every line
Your Maestro asks you to use it on a new case and saves it as evidence when you do.
Work with strings: index and slice them, call common string methods and build text with f-strings
Where I teach it: Values and names · Strings and f-strings
Builds on:
- Name Python's core types (int, float, str, bool and NoneType) and recognize their values, including None, in code
- Assign and reassign variables and predict what each name refers to after every line
Your Maestro asks you to use it on a new case and saves it as evidence when you do.
Write comparisons and combine them with and, or and not, telling = (assignment) apart from == (equality)
Where I teach it: Values and names · Conditions: comparisons, == vs = and truthiness
Builds on:
- Name Python's core types (int, float, str, bool and NoneType) and recognize their values, including None, in code
- Assign and reassign variables and predict what each name refers to after every line
Your Maestro asks you to use it on a new case and saves it as evidence when you do.
Understand
Distinguish the Python interpreter that runs code, the editor where you write it and the terminal where you start it
Where I teach it: Your first program · The interpreter, the editor and the terminal
Builds on:
- Explain that the Python interpreter reads a program's text and runs it statement by statement, top to bottom
Your Maestro asks you to explain it in your own words and saves it as evidence when you do.
Explain that the Python interpreter reads a program's text and runs it statement by statement, top to bottom
Where I teach it: Your first program · The interpreter, the editor and the terminal
Your Maestro asks you to explain it in your own words and saves it as evidence when you do.
Explain how a script differs from a notebook: it runs top to bottom in a fresh process every time, with no hidden state from earlier cells
Where I teach it: Your first program · Scripts aren't notebooks
Builds on:
- Explain that the Python interpreter reads a program's text and runs it statement by statement, top to bottom
- Distinguish the Python interpreter that runs code, the editor where you write it and the terminal where you start it
Your Maestro asks you to explain it in your own words and saves it as evidence when you do.
Explain that a variable is a name bound to an object, not a box that holds a value
Where I teach it: Values and names · Values, types and names
Builds on:
- Name Python's core types (int, float, str, bool and NoneType) and recognize their values, including None, in code
Your Maestro asks you to explain it in your own words and saves it as evidence when you do.
Explain truthiness: which values count as false in a condition (0, empty string, empty list, None) and why it matters
Where I teach it: Values and names · Conditions: comparisons, == vs = and truthiness
Builds on:
- Name Python's core types (int, float, str, bool and NoneType) and recognize their values, including None, in code
Your Maestro asks you to explain it in your own words and saves it as evidence when you do.
Explain that indentation, not braces or keywords, defines which lines belong to a block
Where I teach it: Values and names · Indentation and if/elif/else
Builds on:
- Explain that the Python interpreter reads a program's text and runs it statement by statement, top to bottom
Your Maestro asks you to explain it in your own words and saves it as evidence when you do.
Remember
Name Python's core types (int, float, str, bool and NoneType) and recognize their values, including None, in code
Where I teach it: Values and names · Values, types and names
Your Maestro asks you to recognize and recall it and saves it as evidence when you do.
Who is this course for?
For people who already work with data in spreadsheets, SQL or notebooks and want to learn Python as a programming language, not just a data tool. You don't need to be a programmer. You practice in the browser, then build a small multi-file program on your own machine: the ground for dashboards, web apps and APIs.
Ask your Maestro
Your Maestro is an AI that knows this course. Ask it about "Scripts aren't notebooks", a page you can read before buying, and it answers right here, free.
You: Where do I start?
Your Maestro: From what you already know. Tell me what you've done with data, and I'll start this page from there.
Asking about: Answers from the page "Scripts aren't notebooks"
Only this browser keeps what you ask here. How it works
What we'll cover
Your first program
- Welcome: from notebooks to real programsreference
- The interpreter, the editor and the terminal
- Scripts aren't notebooksRead it free
- Run your code: in the app, or on your own machine
- Print what you mean
Values and names
- Values, types and names
- Numbers and converting types
- Strings and f-strings
- Conditions: comparisons, == vs = and truthiness
- Indentation and if/elif/else
Collections
- Lists
- Tuples and unpacking
- Dicts and sets
- Two names, one list: mutability
- Nested, JSON-shaped data
- Choosing a collection
Loops
- for loops and accumulators
- range, enumerate, zip and while
- Comprehensions
- Loops vs vectorized pandas and SQL
Functions
- Objects, methods and function calls
- Writing functions: def and return
- Default arguments and scope
- Turn copy-paste into functions
- Type hints and docstrings
- Functions as values, and decorators
Errors and your own objects
- Reading tracebacks and common errors
- try, except and raise
- Classes and self
- Dataclasses
- Subclassing a framework's class
Files, modules and the standard library
- Imports and the standard library
- Files and paths
- JSON
- Your own modules and __main__
- Configuration and secrets in environment variables
From script to project
- Packages and environments with uv
- Recording dependencies
- Import errors and "it works in my notebook"
- Reading code you didn't write
- Notebook, script or module?
- Capstone: a small multi-file program
- What's next: from programs to appsreference
How long does it take?
3 to 4.5 hours
A guide: you go at your own pace, and the course waits where you left off.
Common questions
- Do I need to know programming before this Python course?
- You do not need to be a programmer, but you should already work with data in spreadsheets, SQL or notebooks. The course teaches Python as a programming language: values, collections, loops, functions, errors, classes, files and modules. You practice in the browser from the first page and finish with a small program on your own machine.
- What will I be able to build after this course?
- You will write, run and organize real Python programs, including a small multi-file project with its own environment managed by uv. That is the ground you need to start building dashboards, web apps and APIs around your data. When you open a Streamlit, Flask or FastAPI tutorial, you will recognize what the code does.
- Can I get a refund if the course is not for me?
- Yes. You have 7 days from purchase to ask for a full refund, for any reason, by writing to hola@heymaestro.app. It is a one-time payment with no subscription, and your Maestro, a 1:1 AI guide, answers your questions throughout the course. The current price is shown next to the buy button.
- Do I need a course, or can I learn this on my own?
- You can learn it on your own. The course gives you an ordered path from your first program to a multi-file project, exercises you run in the browser, and your Maestro answering your questions. Unsure? Start with a free course such as Where Does Your File Live? If it is not for you, you have 7 days for a refund.
How do I check what AI does? I teach it in Your AI and Your Data: Don't Let It Make Up the Number and Check what AI gives you in three steps.
What you get
- 8 modules and 43 pages, open whenever you want them.
Your Maestro for the whole course, who always knows which page you're on: you open it from there.
It works from this course's skills, the ones above.
Ask it how you're doing, and it tells you what you've already shown and what comes next.
Who's teaching you
Sergio Sánchez
I'm Sergio, chekos online. I'm a data architect, and I've spent more than ten years working with data in the Bay Area, mostly at mission-driven organizations: policy research first, then education, and now early childhood services. I grew up in Tijuana. In 2018 I started tacosdedatos to share what I was learning, and since then it's been a blog, a podcast, courses, guides, and a community. These days I spend a lot of my time building with AI agents and writing about how I organize my work around them. I share what I've learned; you take what's useful and make it yours.
The course in brief
| Price | $25 USD, paid once |
|---|---|
| Pages | 43 in 8 modules |
| Time | 3 to 4.5 hours |
| Language | English, Spanish |
| Format | Online, at your own pace |
| Maestro | Your own 1:1 AI tutor for the whole course |
| Refund | In full, within 7 days |
See you in the course
Python for Data People: From Notebooks to Real Programs