Try Python
Learn Syntax by Running Code in Your Browser
Interactive pages for learning Python fundamentals. Every code block on these pages is live — edit it, run it, see what happens. Powered by Pyodide, so everything executes directly in your browser with nothing to install.
Code cells on these pages are editable and runnable. Change the code, hit run, see the output. There’s no server, no account, no setup. If you break something, refresh the page and start fresh.
Pages
Data Types & Operators Numbers, strings, booleans, and the operations that connect them. The building blocks everything else depends on.
Variables & Functions Storing values, naming things, and writing reusable code. Where Python stops being a calculator and starts being a language.
Iteration & Flow Control Loops, conditionals, and the logic that lets code make decisions. The difference between doing something once and doing it a thousand times.
Errors & Experimentation Reading tracebacks, diagnosing common mistakes, and building the habit of breaking things on purpose. Arguably the most useful skill here.
What You’ll Need
Nothing. This is the starting point.