
About Course
Subject: Python Level: Foundations
What you will learn
Read and write Python programs, model collections, handle files, and build a tested command-line tool.
Prerequisites
No programming experience. A computer with Python 3.11 or newer.
How this course works
Each chapter combines an analogy, a precise explanation, a runnable Python example, expected output, common mistakes, and an exercise with an expandable reference solution. Predict, run, explain, and then modify the example before attempting the exercise.
Syllabus
- Getting comfortable
- Values and decisions
- Working with data
- Reusable programs
- Build something useful
Practice environment
Use Python 3.11 or newer on your own computer. The examples use the standard library and run offline. Process-pool examples must be saved as files. The website does not execute student Python code.
Download the example and solution files (ZIP)
Compare Python levels and prerequisites
The original seven quick-start lessons remain available at the beginning of this course. Continue into the expanded workshops for a deeper understanding.
Course Content
Your first working Python programs
-
Your first Python program
-
Variables and types
-
Decisions with if and else
-
Loops and collections
-
Reusable functions
-
Validate input and handle errors
-
Capstone: temperature report
-
Check your understanding