Run Python in your browser
Type code and press Run to see the result straight away. It is real Python, running on your own device.
Press Run, or Ctrl+Enter (Cmd+Enter on a Mac).
Write, run and fix Python, learn it step by step, and work with real data, all in your browser. Here are all 42 features and where to find each one.
Each number sits on a real button. Click a number to read what it does.
Scroll the picture sideways to see all of it.
The editor on the home page. Python runs inside your browser, on your own device.
Type code and press Run to see the result straight away. It is real Python, running on your own device.
Press Run, or Ctrl+Enter (Cmd+Enter on a Mac).
Write programs that ask the user something, like a quiz or a calculator. When your code calls input(), a box opens in the output: type the answer and press Enter.
Code stuck in a loop that never ends? While your code runs, the Run button turns into Stop. Press it to end the program; your code stays as it is.
Does your course or job use a particular Python version? Pick it here, from 3.11 to 3.14. Python 3.13 is the default.
Click the status line, Python 3.13.2 Ready.
Packages add extra tools to Python. NumPy, pandas, Matplotlib and scikit-learn are already here. Need another? Pick it from the list, or type its name: many packages from PyPI, Python's package store, work too.
Open Packages and pick one from the list, or choose Other… and type any package name. Then press Install, the box button next to it.
Split a bigger program into several files. Press + to add one. Your files can use each other's code with import, just like on your own computer.
Bring your work in and take it with you. Upload .py files, data files or a whole project as a .zip. Download the file you are on, or all of them as a .zip.
Close the page and come back later: your code is still there. It is saved in this browser as you type.
The buttons above your code, and what the editor does for you while you type.
Messy spacing or indentation, maybe from pasted code? One click lines it up the standard Python way.
Press Format, or Shift+Alt+F.
Mistakes like a missing bracket or a wrong indent get a wavy underline while you type, and the line number blinks. Point at the underline to see what is wrong, before you even press Run.
Start typing and the editor suggests the rest: Python's own words, the packages you import and your own variable names.
14 ready-made programs to learn from or start with, such as a password generator, a currency converter and Conway's Game of Life. Each opens in a new tab, so your own code stays put.
Deleted something by mistake? Each time you pause typing for a few seconds, the editor saves a copy, and it keeps the last 5. Open Time Travel to bring any of them back.
Turns your code into a neat picture in a window frame, with its colours, ready to post on social media or send to a friend. It downloads as a PNG file.
Find any word in your code and change it everywhere at once. The small arrows next to the line numbers fold a block away, so long code is easier to read.
Ctrl+F (Cmd+F on a Mac).
Gives the editor and the output the whole window, so you have more room for long code.
Put the output under your code, or next to it. The layout button at the top right switches between the two.
Not sure what a button does? The compass at the top of the editor opens a short guide: how to write, run and share code, and what is new.
Jump to lessons, quizzes or the Notebook without losing your code: Tutorial Lab, Academy, Notebook and Programs are one tab away.
Lessons, practice and quick answers. Every code example has its own Run button.
242 free lessons in 17 tracks, from your first variable to machine learning and AI.
Not sure what to learn next? Start with the core route, then choose Web, Data, ML and AI, or Automation. Each path ends in a project you build.
Quizzes, coding exercises and timed tests to check what you have learned.
Classic programs such as factorial, primes and Fibonacci, with the code, the output and how it works. Press Start practice to type one yourself, step by step.
26 quick answers to “how do I…?” questions: read a CSV, parse JSON, call an API, sort a dict.
31 tips for writing better Python, each with before-and-after code you can run, and 8 stories of how real projects used them.
24 one-page PDFs to print or download: strings, lists, dictionaries and more. Every example is checked against real Python.
What an error message means, and how to fix it.
Got an error you don't understand? Paste the message here: it explains it in plain words and takes you to the fix.
80 common Python errors, each with what it means, the code that causes it, and the fix.
pandas, charts and models, ready to use.
Write code in small blocks (cells) and run them one at a time. Each cell remembers what the earlier ones made, such as your data, models and charts. Opens and saves Jupyter notebook files (.ipynb).
7 ready CSV files to practise on, such as housing, movies and weather. Each loads with one line of code.
Upload your own CSV or Excel file, such as your marks or expenses, and explore it with pandas.
Turn your data into charts. Matplotlib charts appear as sharp pictures. Plotly charts stay live, so you can zoom, point at values and turn 3D charts around.
Teach the computer to find patterns and make predictions. scikit-learn is built in, and XGBoost, LightGBM and statsmodels work too. Train a model on your own CSV. PyTorch and TensorFlow can't run in a browser, so they are not here.
Send your code to a friend, a teacher or your own website.
Send your code to a friend or teacher as a link: it opens with your code, ready to run. Or post it to WhatsApp, X, LinkedIn or Facebook, or copy it for Instagram.
Share+ puts all your open files in one link, so a whole project opens with one click. It posts to the same apps as Share.
Writing a blog post or course page? Paste in one snippet and your readers get a code box they can edit and run, right on your page. On GitHub, a Run button in your README opens your code here, ready to run.
On any screen, for as long as you like.
The same editor and lessons work on phones and tablets. Select and copy code with your finger, as in any app, and input() works there too.
Three looks. On your first visit it follows your device. Eye Saver is a soft cream page for long sessions.
After 65 minutes of active coding, a short friendly message reminds you to stretch, walk, drink water or rest your eyes. Time away from the keyboard doesn't count, it never interrupts a running program, and it closes by itself after 20 seconds.
After 5 minutes without typing or clicking, the editor turns into a calm sky scene: rain, snow, a thunderstorm and more, in morning, afternoon, evening or night colours. Press any key to come back.
While Python starts, the loading screen shows the sky where you are: sun, clouds, rain, snow or a storm, by day or by night.
No login, no install and no cost. Your code runs on your device and never leaves it.