Focus Editor
ctrl+j
Next Tab
ctrl+shift+j
Create File
Run Code
ctrl+enter
Login to Reset
Format Code
alt+enter
Edit the sample project above or replace it with your own Python code, then press Run. The Python 3 interpreter runs in your browser through WebAssembly, so you don't need to install Python or create an account.
Use it to test a short snippet, trace an error, or work across a few Python files without setting up a local development environment.
main.py, or add another .py file for a multi-file program. main.py. A playground is useful when you know what you want to test. For a structured introduction to variables, functions, loops, data structures, testing, and debugging, work through the hands-on beginner course.
Yes. You can edit and run Python code without installing anything or creating an account. Your work is saved in this browser. You only need an account to create a share link.
It runs Python 3 in your browser through Pyodide and WebAssembly. It is best for snippets, practice, and small multi-file programs rather than as a replacement for a complete local development environment.
Yes. You can work with up to five .py files. The playground runs main.py as the entry point, and you can import your other files as Python modules.
The runner automatically loads supported packages from the Pyodide runtime when it finds their import statements. It does not support every Python package or arbitrary system dependency.
Online Python compiler is the common name for this kind of tool, but your code is executed by a Python 3 interpreter. Pyodide brings that interpreter to the browser with WebAssembly.