Python Lab

Write Python, run scripts and try commands in the terminal. Your code stays in this browser.

Terminal / output

For multiline code, use the script editor. Enter print(x) to inspect a variable.

Tab inserts four spaces. Shift+Tab moves focus out of the editor. Ctrl+Enter runs or refreshes. Work is autosaved in this browser when storage is available. Use Save to keep a file.

About Python Lab

Write Python, run scripts and try commands in the terminal. Your code stays in this browser.

Supports school Python basics, input(), functions, lists, dictionaries, random and math. Run starts a fresh script; terminal commands retain variables. Stop and Restart reset Python memory. Programs have a 10-second execution limit and output is capped. Saving downloads the script; it does not overwrite your original file. This Skulpt environment does not support writing data files, desktop apps or all modern Python syntax. Skulpt is freely licensed.

Related tools

Share this page

Social links open a draft in a new tab for you to review and send.

Report an error or bug

Please do not include your name, school, passwords or other personal information. Responses go to the website owner through Microsoft Forms. Open form in a new tab if it does not load here.