After this lesson, you can
- Run and edit browser Python.
- Reset a code cell safely.
- Know when to move to JupyterLab or Colab.
1. Run a lesson example
- 1Sign in if you want activity saved to your account.
- 2Open a Python-enabled lesson.
- 3Find a Live Python block.
- 4Select Run Python.
- 5Read the output.
- 6Change the code and run it again.
- 7Use Reset to restore the original code.
- 8Open a notebook when you need a larger lab.
Run PythonReset
values = [2, 4, 6, 8]
print(sum(values) / len(values))Output
5.0
Live Python
Browser Python check
Browser Python check
Stdout
Run Python to see results here.
Status / stderr
Ready to run Python in your browser.
Line-by-line guide
- Line 1Display a result so students can inspect the output.
Expected output
My Ceteris Lab Python is working!
Live Python
NumPy check
NumPy check
Stdout
Run Python to see results here.
Status / stderr
Ready to run Python in your browser.
Line-by-line guide
- Line 1Load a Python library needed for data work or regression.
- Line 3Create or update a Python object used in the analysis.
- Line 4Display a result so students can inspect the output.
Expected output
5.0
Challenge
Add 10 to the array and predict the new mean before running.
Your setup progress