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.
16
6
258m
0/22
Hello, Python
Write your first lines of code and make the computer talk back.
Strings & booleans
Work with text, then learn how Python answers yes and no.
Making decisions
Teach your program to choose between paths.
Lists & loops
Hold many values at once, then do something with each of them.
Functions & collections
Package your logic, then store data by name instead of position.
Leveling up
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