Python Editor
iwantcoding.com ships an in-browser Python editor that runs real CPython via Pyodide — Python compiled to WebAssembly. Type code on the left, press Run », see print() output on the right.
Open the Python Editor »
Opens in this tab. Use the browser Back button to return.
What you can do
- Run any Python you write.
print()output streams into the console panel. - Use the standard library —
json,re,datetime,math,collections,itertools,sqlite3, and more. - Install pure-Python PyPI packages on the fly with
micropip.install("pkg"). - Pick from ready-made sample programs in the toolbar dropdown.
Things to know
input()doesn't pause for terminal input in the browser — substitute a fixed value to demo it.- File I/O writes to an in-browser virtual filesystem; nothing leaves the tab.
- Network calls work via
pyodide.http, not requests (no real sockets in the browser). - Heavy native packages like
numpy,pandas,matplotlibare available as pre-built Pyodide wheels — they take a few seconds to load on first import.
Sample to try
PYTHON
from collections import Counter text = 'the quick brown fox jumps over the lazy dog the fox the fox' print(Counter(text.split()).most_common(3))
Keyboard shortcuts
| Shortcut | Does |
|---|---|
| Ctrl+Enter (or Cmd+Enter) | Run the program. |
| Tab | Indent (4 spaces — Python's convention). |
| Reset button | Clear console output. (To reset Python's state, reload the page.) |
Tip: Pyodide is real CPython 3.x — anything you'd type in a terminal Python session works here, with the few networking and I/O caveats above.
Example
Example
print('Welcome to the iwantcoding.com Python editor — powered by Pyodide.')
import sys
print('Running Python', sys.version.split()[0])
Try it Yourself »
Exercise
WebAssembly Python runtime used by the editor.
Answer:
Seven letters; sounds like "pyo-died".
Discussion
Loading…