Learn Python for free
Original, runnable examples for Python fundamentals, automation, small projects and responsible business use. Start here if you are new to Python. The separate paid course focuses on applying Python and Codex to product and business building.
Explore Harvard CS50P and other foundational learning resources →
Python Fundamentals
How to Learn Python From Scratch: A Beginner's Roadmap
A practical beginner Python learning roadmap with exercises and a first runnable program.
Python Variables and Data Types Explained With Examples
Understand Python strings, integers, floats and booleans with a tested example.
Python For Loops vs While Loops: When to Use Each
Learn when Python for loops and while loops are appropriate, with clear code examples.
Python Functions Explained Through Practical Projects
Write small, testable Python functions using parameters and return values.
7 Common Python Beginner Mistakes and How to Fix Them
Fix seven common Python errors with debugging guidance and a runnable example.
Python Automation
How to Write Your First Python Automation Script
Create a safe Python text-processing automation that previews its result without modifying files.
How to Read and Write CSV Files With Python
Use Python's built-in csv module to read and write rows safely.
How to Automate Excel Tasks With Python
Understand spreadsheet automation with openpyxl and a safe workbook example.
Python Projects
10 Useful Python Scripts for Beginners
Ten practical beginner Python script ideas and a runnable starter example.
Python for Business
How to Build a Python Portfolio With Real Projects
Build a credible Python portfolio using small projects, tests and clear documentation.
Explore the optional $49 Python to Profit course after learning the foundations. No purchase is required to use these guides.