Learn to code with Python with no prior knowledge: variables, decisions, loops, functions, collections, errors, files and objects, with exercises that run in your browser.
Complete every lesson to get your certificate.
Module 1
First steps
What programming is, your first program, variables, data types, operators, text and user input.
Unit 1 · Your first program
Unit 2 · Storing information
Module 2
Decisions and loops
Make your programs decide with if/elif/else and repeat tasks with while and for.
Module 3
Functions and collections
Organize your code into reusable functions and store lots of data with lists, tuples, dictionaries and sets.
Unit 1 · Functions
Unit 2 · Data collections
Module 4
Beyond the basics
Handle errors, store data in files, use modules and create your own objects with classes.
Unit 1 · Robust programs
Unit 2 · Object-oriented programming