Python code playground
Variables, loops, lists and functions with instant output.
numbers = [4, 8, 15, 16, 23, 42] print("Sum:", sum(numbers)) print("Max:", max(numbers)) print("Even:", [n for n in numbers if n % 2 == 0])Open in Playground →
A free Python code playground for learning and teaching. Run Python, draw with turtle and build tkinter apps on Chromebooks, tablets and phones.
Change the code, press Run and see the result. Python runs in a sandbox inside your browser tab, so there is no server to wait for and nothing touches your computer.
Start with text output, then move to drawings and real windows. You use the same editor for all of them.
Variables, loops, lists and functions with instant output.
numbers = [4, 8, 15, 16, 23, 42] print("Sum:", sum(numbers)) print("Max:", max(numbers)) print("Even:", [n for n in numbers if n % 2 == 0])Open in Playground →
Run Python turtle online: draw shapes and patterns, and watch the turtle move.
from turtle import * pencolor("royalblue") for step in range(60): forward(step * 3) left(91)Open in Playground →Learn more →
Run Python tkinter online: build GUI apps with buttons, labels and forms.
import tkinter as tk root = tk.Tk() tk.Label(root, text="Hello").pack() tk.Button(root, text="OK").pack() root.mainloop()Open in Playground →Learn more →
Pyroom works on school Chromebooks and any device with a browser. You do not need admin rights, accounts or a lab setup.
Practice Python for lessons, homework and exams. Open the playground, type code and run it in seconds.
input() works too, so students can write quizzes and small games.
Step 1
It loads in your browser. Nothing to download.
Step 2
Type Python code or open a ready example.
Step 3
See the output, the drawing or the window next to your code.
A Python playground is a place where you write and run Python code without setting anything up. Pyroom runs Python directly in your browser.
Yes. Your code runs in a WebAssembly sandbox inside the browser tab. It cannot install anything or change files on your computer, so it is safe to experiment.
Yes. The playground is free for everyone and does not need an account.
Yes. Pyroom works as a Python turtle sandbox and a Python tkinter sandbox: it runs turtle graphics and tkinter GUI apps in the browser, which most online Python playgrounds do not support.
Yes. Pyroom is made for schools and self-study. It works on Chromebooks, explains errors in plain language and lets teachers share tasks by link or QR code.
No. Python 3.13 runs inside your browser tab, compiled to WebAssembly.
Yes. After the first visit, the playground keeps working without an internet connection.
Captioned videos with step-by-step text, from beginner to advanced.