The dark box below is fully editable. Change the code, tweak the values, then hit ▶ Run. This is real Python, running right in your browser — no install needed.
Setting up the Python engine… just a moment.
📌
💡 Edit the code however you like, then click ▶ Run, or press Ctrl/Cmd + Enter.
example.py✏️ editable
Resultoutput
▶ Click "Run" to see the result here.
🧩 Tap or drag blocks from the left onto the canvas. Set their values, then click ▶ Run Blocks, or send them to the editor to tweak as Python code.
👆 Now tap the canvas to place it
Variables
Input / Output
Compute
Loops
Conditions
Other
blocks_program.py
🧩Tap or drag blocks here to start building your program.
👀 Python code previewauto-generated from your blocks
# Balokmu akan berubah jadi kode Python di sini...
Build, run, learn
Resultoutput
▶ Click "Run Blocks" to see the result here.
Enjoy learning this way?
Explore more from us
This playground is free, built to help beginners understand Python in a fun way. If it helped you, explore our writing for more, or support us to keep these tools free for everyone. Thank you! ❤️