Learn Python and run it right here

Lessons and a playground that run Python in your browser, with no account. The iPhone and iPad app opens the same projects and runs them with full CPython, offline.

main.pyRuns in this browser
def running_total():
    total = 0
    def add(n):
        nonlocal total
        total += n
        return total
    return add

add = running_total()
print(add(5), add(3))
5 8
Ran in this browser · Pyodide 314.0.7 · exit 0

The path

All lessons

Work on one project together

Share a room by link with a person or an AI client. Edits merge live, and every run says where it ran: this browser, or an iPhone that agreed to run it.

Open a room

Pythilo for iPhone and iPad

A Python IDE and the same course, with full CPython that runs offline. It opens rooms from this site and can run their code when you allow it.