iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

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, matplotlib are 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

ShortcutDoes
Ctrl+Enter (or Cmd+Enter)Run the program.
TabIndent (4 spaces — Python's convention).
Reset buttonClear 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:

Test yourself

Q1. The browser editor uses…
Q2. input() in the browser editor…
Q3. Ctrl+Enter…

Discussion

Loading…