RustPython Demo

RustPython is a Python interpreter written in Rust. This demo is compiled from Rust to WebAssembly so it runs in the browser.
Input your Python code below and click Run (or Ctrl+Enter), or you can open up your browser's devtools and play with rp.pyEval('1 + 1')

Standard Output

Interactive shell

Here's some info regarding the rp.pyEval(), rp.pyExec(), and rp.pyExecSingle() functions

Fork me on GitHub