Python Intermediate: Write Code You Won't Be Embarrassed to Share
This is for people who can already write small Python scripts and now need code that other people can install, read, test and trust. You will set up projects that don't fight each other, split code into modules and classes, work with real files and CSV data, and prove your code works before someone else finds the bug. If your code only runs on your laptop and only you understand it, it is not finished yet.
Course access
-
Set Up Projects That Don't Break Each Other (empty)3Lessons · 15 min
-
Python Virtual Environments and pip: One Project, One Environment
Why every project needs its own virtual environment, how to create and activate one on Windows, macOS and Linux, and how pip installs into it. After this, upgrading a package for one project won't break another.
5 min -
Pinning Python Dependencies With requirements.txt
How to record the exact package versions a project needs and rebuild the same environment on another machine. After this, "it works on my computer" stops being the answer.
5 min -
-
-
Organize Code Other People Can Read (empty)4Lessons · 20 min
-
Python Modules and Packages: Splitting One Big File
When one script gets too long, split it into modules and packages. After this, you can move functions into their own files, import them, and keep the entry point small.
5 min -
Python Imports: Why ModuleNotFoundError Keeps Happening
How Python finds the modules you import, why the folder you run from matters, and the usual causes of ModuleNotFoundError. After this, you can fix import errors by checking instead of guessing.
5 min -
Python Classes: When a Dictionary Is No Longer Enough
When to move from dictionaries to classes, how to write a class with methods, and when a dataclass is enough. After this, you can group data with the rules that belong to it.
5 min -
-
-
Work With Real Files (empty)4Lessons · 20 min
-
Python File Handling: Open, Read, Write, and Always Use with
Reading and writing text files the safe way: with blocks, file modes, encodings, and what happens when a file is missing. After this, your scripts stop leaving half-written files behind.
5 min -
Python pathlib: Stop Building File Paths by Hand
Build, check and search file paths with pathlib instead of string concatenation. After this, the same script works on Windows, macOS and Linux.
5 min -
Reading, Cleaning and Writing CSV Data in Python
Read a messy CSV export, skip empty and broken rows, convert the values, and write a clean file back. After this, you can process a real spreadsheet export without fixing it by hand first.
5 min -
-
-
Shorter Code That Still Says What It Does (empty)3Lessons · 15 min
-
Python Comprehensions: Lists, Sets and Dictionaries
How list, set and dictionary comprehensions work, with filtering and transforming in one line. After this, you can replace simple build-a-list loops and read comprehensions in other people's code.
5 min -
When a Comprehension Should Be a Plain Loop
Where comprehensions stop helping: nested logic, side effects, and errors you need to handle. After this, you can decide case by case whether one line or a loop is the better code.
5 min -
-
-
Prove It Works Before Someone Else Finds Out (empty)3Lessons · 25 min
-
Python Testing Basics With pytest
Write and run tests with pytest, read a failing test, and test errors and edge cases. After this, you can change your code and know within seconds if you broke something.
10 min -
Debugging Python With print, logging and pdb
Three ways to find out what your code is actually doing: print, the logging module, and the pdb debugger. After this, you can pick the right tool for the bug instead of guessing.
10 min -
-
-
Final Check: Python Intermediate (empty)1Lessons · 15 min
-
About
This is for people who can already write small Python scripts and now need code that other people can install, read, test and trust. You will set up projects that don't fight each other, split code into modules and classes, work with real files and CSV data, and prove your code works before someone else finds the bug. If your code only runs on your laptop and only you understand it, it is not finished yet.
- Responsible
- Christopher R
- Last Update
- 09/23/2026
- Completion Time
- 1 h 50 min
- Members
- 1
Reviews
Sign in to write a reviewComments
Sign in to commentNo comments yet.