Python Beyond the Browser
20-minute lesson · module-lab-python-beyond-browser
You are previewing this course as a guest
Read anything and run any exercise you like. It all runs in your own browser, so nothing here is saved: no XP, no progress, and the AI tutor needs an account. Sign in and your work starts counting.
Python Beyond the Browser
20-minute lesson · module-lab-python-beyond-browser
- Distinguish a Python REPL session from a saved `.py` script.
- Explain why the REPL auto-prints expressions but scripts must call `print()`.
- Install Python locally and run a script from the command line.
Source attribution
Status: adapted
How to Think Like a Computer Scientist: Interactive Edition — source · Labs / Python Beyond the Browser
Adaptation notes. Reading rewritten to reflect 2026 Python install paths (Microsoft Store on Windows, Homebrew on macOS, distro packages on Linux), and to draw an explicit contrast between PyTutor AI's in-browser Pyodide runtime and a "real" desktop Python install. Coding step demonstrates the REPL-vs-script printing difference inside the browser sandbox.
License notes. Original lab is GNU FDL 1.3 (Brad Miller and David Ranum, 2011). No verbatim text from the original is reproduced here.