Introduction to Programming (Summer 2026)
This is the Summer 2026 version of the Introduction to Programming course. This 5 ECTS course teaches you the fundamentals of programming in Python — from writing your very first lines of code to reading and transforming real-world data. Along the way you will also learn how to work effectively alongside generative AI tools, and — just as importantly — how to tell when they are wrong.
The course materials will be available for a while, after which they will be archived. The updated course will be available here.
Course Parts
We recommend starting from the first one, but you can also browse around.View chapters
View chapters
- Overview
- Boolean Expressions
- Conditionals
- Lists
- Loops Over Lists
- Counting, Accumulating, and Searching
- While Loops and Range
- Tracing Control-Flow-Heavy Programs
- Verifying Behavior and Finding the Edge Cases AI Misses
- Adding Choices and Repetition to Your Study Log
- Recap and Feedback
- Remedial Practice
View chapters
- Overview
- Functions Help Organize Code
- Defining and Calling Functions
- Parameters and Return Values
- Writing Simple Tests to Check Your Functions
- Local and Global Scope
- When Things Go Wrong: Exceptions and Input Validation
- Refactoring Code into Functions
- Specifying What You Want -- Turning Intent into Prompts
- Restructuring Your Study Log with Functions
- Recap and Feedback
- Remedial Practice
View chapters
- Overview
- Working on Your Own Computer
- Reading Text Files
- Writing Files
- CSV Basics
- Multidimensional Lists for Grid-Shaped Data
- Everything Is a File: A Wider View of Data Formats
- Defensive Programming with Files and External Data
- Plausible but Wrong: Detecting AI Code That Runs but Does Not Work
- Making Your Study Log Persistent
- Recap and Feedback
- Remedial Practice
View chapters
- Overview
- Applying Summary Patterns to Rows
- Summaries by Category
- Working With Dates and Date Windows
- Sorting and Ranked Summaries
- Summaries by Day
- Streaks of Consecutive Days
- A Compact Form: List Comprehensions
- Comparing Reasonable Approaches
- Adding an Opening Dashboard to Your Study Log
- Recap and Feedback
- Remedial Practice
View chapters
- Overview
- Dictionaries: Key-Value Thinking
- Dictionaries for Counting and Grouping
- Nested Structures: Lists of Dicts and Dicts of Lists
- From Rows to Records
- Reading and Writing JSON
- Defining Your Own Types: Classes
- Adding Behavior: Methods
- Objects Meet Files: Serialization
- Critiquing Data Designs
- Refactoring the Study Log with Classes
- Recap and Feedback
View chapters
- Overview
- You Have Already Used Libraries
- Imports, Names, and Documentation
- Standard Library Tools: Math and Randomness
- Standard Library Tools: Dates Revisited
- Installing Third-Party Libraries
- NumPy: Arrays and Vectorized Calculations
- Pandas DataFrames: Tables in Python
- Summarizing Data with pandas
- Working With AI on Libraries You Are Still Learning
- Reproducing Your Study Log Summaries with pandas
- Recap and Feedback