ASK SHAILearning lab

TRY · CHANGE · EXPLAIN

Make the maths visible.

Explore a small Python program. Predict its output, run it, then change one thing and explain what happened.

Python runs on this device with internet access blocked. Every run starts fresh and stops after five seconds. Your code and results are not saved.

Choose when to load Python

The optional Python and SymPy pack is about 18.2 MB. No account is needed.

Choose an example below. Load Python when you are ready to run it.

1. Predict and edit

Edit values before running. Python's standard library, SymPy and mpmath are included. Interactive input and additional package downloads are unavailable.

2. Compare the result

Your result will appear here.

3. Explain the change

What carries over between runs?

Nothing from a program: variables and files start empty each time. Keep your work by copying it before leaving this page. The downloaded runtime can remain in the browser's ordinary cache.

Quick answers

What is the Python learning lab?

It is an in-browser practice environment where you predict an example's output, change the code, run it and explain the result.

Do I need an account or a Python installation?

No account is required. You can choose to load the optional Python and SymPy browser package for local execution on your device.

Is my code automatically saved?

No. Each run starts in an isolated environment and your code and results are not automatically retained. Copy anything you want to keep.