Your classroom

Python, one lesson at a time

16 lessons and 6 hands-on labs. Read a short lesson, take the quiz, then open the code editor right under the lab and write real Python — auto-graded in your browser.

Lessons

16

Labs

6

Total

258m

Done

0/22

Start: Printing & your first program
unit 01

Hello, Python

0/4 done

Write your first lines of code and make the computer talk back.

unit 02

Strings & booleans

0/4 done

Work with text, then learn how Python answers yes and no.

unit 03

Making decisions

0/3 done

Teach your program to choose between paths.

unit 04

Lists & loops

0/4 done

Hold many values at once, then do something with each of them.

unit 05

Functions & collections

0/3 done

Package your logic, then store data by name instead of position.

unit 06

Leveling up

0/4 done

Errors, your own types, and functions that call themselves.

Where this path leads

The same ground the freeCodeCamp scientific computing curriculum covers: variables, strings, booleans, conditionals, lists, loops, functions, dictionaries, sets, errors, classes and recursion — through to regular expressions and building small tools of your own.

Read the blog while you learn