RU

Python online

Write and run Python right in your browser.

Examples
main.py
Console

Output appears after you run the code.

Ready to runCtrl / ⌘+Enter
Processing runs locally in your browser

About this tool

An online Python interpreter with Monaco, a console and standard input. Run scripts, check exercises and save .py files directly from your browser.

How to use it

Type code or open a .py file. If the program calls input(), open “Input” and enter one response per line. Press Run or Ctrl/⌘ + Enter to execute it.

Practical example

Choose “Reading input()”, supply a name and look for the greeting in the console. “Parsing JSON” shows how the json module turns a string into a list of dictionaries.

Frequently asked questions

Which modules can I import?

The browser distribution of the Python standard library is available. Modules that require system processes, sockets or native extensions outside that distribution may be unavailable. Use Stop to interrupt a loop.

What happens to code when I refresh?

The editor restores your last local draft. Download main.py to move the source to another device.