Start here · 10 stepsBuild your first Python script
Print a result, accept input, make decisions, and finish a small program.
What you will make: A number-guessing game that reads guesses, gives feedback, and stops when the answer is found.
Progress is saved in this browser
Start: Hello, World! →View the 10 lessons and finish line
- Python History
- Hello, World!
- Variables and Types
- Basic Operators
- Input and Output
- Conditions
- Loops
- Functions
- Project: Tip CalculatorProject
- Project: Number Guessing GameProject
Finish line- Run a program that reads and prints a value.
- Pass the conditions and loops coding tasks and quizzes.
- Finish the number-guessing task and test a first-try win and a repeated guess.
Open the final coding task → After the basics · 15 stepsOrganize and transform data
Work confidently with lists, dictionaries, sets, and efficient collection tools.
What you will make: A flashcard quiz that grades answers and lists the prompts to review.
Progress is saved in this browser
Start: Lists →View the 15 lessons and finish line
- Lists
- Dictionaries
- Tuples and Sets
- Slice Python Sequences Without Losing the Edges
- Shallow vs Deep Copy in Python
- List Comprehensions
- Dictionary and Set Comprehensions
- Loop with enumerate() and zip()
- Sort Python Lists and Dictionaries with key
- Count and Group Data with Counter and defaultdict
- Build Queues and Stacks with deque
- Schedule Jobs with heapq
- Find Insertion Points with bisect
- Project: Text AnalyzerProject
- Project: Flashcard QuizProject
Practical data · 14 stepsRead, clean, and save real data
Handle text, files, CSV, JSON, dates, and web responses in practical projects.
What you will make: A log analyzer that counts severity levels, collects errors, and reports malformed rows.
Progress is saved in this browser
Start: String Formatting →View the 14 lessons and finish line
- String Formatting
- Basic String Operations
- Understand Unicode Text and UTF-8 Bytes
- Python Regular Expressions: search and findall
- Reading and Writing Files
- Work with File Paths using pathlib
- Read and Write JSON and CSV
- Manage Resources with Python with Statements
- Dates and Timedeltas in Python
- Convert Aware Datetimes with zoneinfo
- Calculate Money with Decimal
- Read a JSON API with urllib
- Project: CSV Expense TrackerProject
- Project: Analyze Application LogsProject
Debugging · 7 stepsFind and fix Python errors
Read tracebacks, validate inputs, log what happened, and test the repair.
What you will make: A reproducible bug report with a focused code fix and a test that catches the original failure.
Progress is saved in this browser
Start: Truthiness, None, and Identity in Python →View the 7 lessons and finish line
- Truthiness, None, and Identity in Python
- Exceptions
- Create a Custom Python Exception for Validation
- Read Python Tracebacks and Fix the Failing Layer
- Replace Debug Prints with Python Logging
- Test Python Functions with Assertions
- Test Dependencies with unittest.mock
Finish line- Reproduce an error and read its final traceback line.
- Apply the smallest fix and verify an edge case.
- Write a deterministic test using a fake dependency where needed.
Open the final coding task → Local Python · 5 stepsRun Python tools locally
Set up Python, import modules, accept arguments, and manage configuration.
What you will make: A local contact-book script plus a small command-line argument parser you can run from a terminal.
Progress is saved in this browser
Start: Installing Python and Virtual Environments →View the 5 lessons and finish line
- Installing Python and Virtual Environments
- Modules and Packages
- Read Environment Configuration Safely
- Build a Small CLI with argparse
- Project: Contact BookProject
Next steps · 9 stepsWrite reusable Python functions
Make functions easier to call, test, reuse, and reason about.
What you will make: A set of reusable functions with explicit arguments, type hints, and a checked caching or async example.
Progress is saved in this browser
Start: Function Arguments, Return Values, and Scope →View the 9 lessons and finish line
- Function Arguments, Return Values, and Scope
- Collect and Unpack Function Arguments
- Write Clearer Functions with Python Type Hints
- Iterators and Generators in Python
- Build Small Data Pipelines with itertools
- Understand Recursion and the Call Stack
- Memoize Pure Functions with lru_cache
- Write Python Decorators that Preserve Behavior
- Start Concurrent I/O with asyncio
Finish line- Write a function with a clear argument and return contract.
- Pass an iterator, caching, or decorator coding task.
- Finish the async practice task and explain what work can run concurrently.
Open the final coding task → Next steps · 6 stepsModel data with classes
Choose when to use objects, dataclasses, composition, and special methods.
What you will make: A small class with validated state and useful representations, comparison, or length behavior.
Progress is saved in this browser
Start: Classes and Objects →View the 6 lessons and finish line
- Classes and Objects
- Python dataclasses: Fields, Defaults, and asdict
- Choose Composition Over Unnecessary Inheritance
- Use Properties to Keep Python Objects Valid
- Make Objects Work with repr, ==, and len
- Read Structured Data with match and case
Finish line- Create a class or dataclass with named fields.
- Validate an invalid assignment and test the resulting error.
- Finish the special-methods task and inspect repr, equality, and length.
Open the final coding task → Build a data tool · 4 stepsValidate incoming data
Normalize text, inspect CSV and JSON Lines, and report the exact row that needs repair.
What you will make: A CSV import validator that returns accepted records and row-specific error messages.
Progress is saved in this browser
Start: Validate CSV Rows with DictReader →View the 4 lessons and finish line
- Validate CSV Rows with DictReader
- Process JSON Lines One Record at a Time
- Normalize Unicode Text for Search Keys
- Project: CSV Import Validator with Row ErrorsProject
Build a business tool · 4 stepsPlan inventory orders
Use precise comparisons, clear summaries, and valid states to make a stock decision.
What you will make: A reorder planner that identifies shortfalls and prints a deterministic order list.
Progress is saved in this browser
Start: Compare Floating-Point Results with math.isclose →View the 4 lessons and finish line
- Compare Floating-Point Results with math.isclose
- See How Outliers Change Mean and Median
- Use Enums for Clear Python States
- Project: Inventory Reorder PlannerProject
Build a scheduling tool · 4 stepsDetect booking conflicts
Model bookings with explicit constructors, preserve errors, and test interval boundaries.
What you will make: A booking conflict detector that reports overlapping time slots without false positives at touching boundaries.
Progress is saved in this browser
Start: Choose classmethod or staticmethod with a Parser →View the 4 lessons and finish line
- Choose classmethod or staticmethod with a Parser
- Explain Failures with Exception Chaining
- Test Cases with unittest Fixtures and subTest
- Project: Booking Conflict DetectorProject
Build a file tool · 4 stepsVerify a local archive
Read configuration, calculate content hashes, and inspect ZIP members safely.
What you will make: An archive manifest verifier that names missing, extra, and changed files.
Progress is saved in this browser
Start: Read INI Settings with configparser →View the 4 lessons and finish line
- Read INI Settings with configparser
- Check Content with hashlib
- Create ZIP Archives in Memory
- Project: Verify a ZIP Archive Against a ManifestProject
Build a web concept tool · 4 stepsExplore an offline page graph
Parse links, control crawl state, and render discovered text safely using local fixture pages.
What you will make: An offline crawler that follows a bounded set of fixture links without revisiting pages.
Progress is saved in this browser
Start: Build Stateful Closures with nonlocal →View the 4 lessons and finish line
- Build Stateful Closures with nonlocal
- Build Query Strings with urllib.parse
- Escape Text for HTML Output
- Project: Offline Web Crawler on a Fixture GraphProject