Free module
Programming with Python
Learn Python programming hands on: algorithms, variables, if statements, loops, functions, lists, dictionaries and files.
The lessons
Each lesson is free to read in full. Create a free account to run its commands in a live lab and to sit its quizzes and tasks.
1 · Virtual machine lab
Algorithms, pseudocode and trace tables
I can break a problem into steps and trace what a program does.
Read the lesson2 · Virtual machine lab
Variables, data types and print in Python
I can store values in variables and print a result.
Read the lesson3 · Virtual machine lab
If, elif and else statements in Python
I can make a program choose with if, elif and else.
Read the lesson4 · Virtual machine lab
For and while loops in Python
I can repeat work with for and while loops.
Read the lesson5 · Virtual machine lab
Functions in Python: def, parameters and return
I can write a function that takes values and returns a result.
Read the lesson6 · Virtual machine lab
Python lists and dictionaries
I can keep many values in lists and dictionaries.
Read the lesson7 · Virtual machine lab
Reading files and handling errors in Python
I can read and write text files and handle an error.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.