Learn Python,
then go deeper.
Python Foundations and Advanced Python—every lesson, explanation, example, assignment, sample run, key term, planning note, and project.
Python Foundations
Begin here if you are new to Python.
Your First Program
Printing, comments, program headings, escape characters, and four first assignments.
Open chapter → 02Variables
Data types, variables, strings, numbers, user input, and five assignments.
Open chapter → 03Functions
Creating, calling, combining, and returning values from functions.
Open chapter → 04Conditionals
Conditions, if/elif/else, logical operators, nested decisions, assignments, and a project.
Open chapter → 05Loops
while and for loops, range, nesting, modules, assignments, and three complete projects.
Open chapter →Advanced Python
Continue with larger data structures, concise patterns, testing, files, decorators, and object behavior.
Advanced Overview
The complete advanced-course outline, planning notes, topics, and supporting examples.
Open chapter → A01Dictionaries & Tuples
Creating, changing, looping through, formatting, and nesting dictionaries and tuples.
Open chapter → A01+Dictionary Notes
The complete supplemental dictionary guide with examples, methods, and exercises.
Open chapter → A02Advanced Functions
Keyword arguments, defaults, arbitrary arguments, and flexible function patterns.
Open chapter → A03List Comprehension
Building concise lists from loops, expressions, and conditional logic.
Open chapter → A04Testing Your Code
Unit tests, test cases, assertions, failures, and testing functions and classes.
Open chapter → A05Reading & Writing Files
File paths, reading, writing, appending, exceptions, JSON, and data persistence.
Open chapter → A06Decorators — Course Draft
The complete decorator chapter draft with instructor feedback, assignments, and project.
Open chapter → A06+Decorator Notes
Supplemental decorator examples, explanations, and linked reference material.
Open chapter → A07Descriptors
The complete descriptors reference document from the advanced-course archive.
Open chapter → A08Magic or Dunder Methods
Customizing Python objects and operators with built-in magic methods.
Open chapter →