Projects & Environments Coding Clinic.
Six independent Python exercises for the concepts behind real local projects. Inspect the interpreter, distinguish standard-library modules, reason about dependency records and write a reusable inventory report.
Two different environments: This browser workbench runs real Python for practice code, but cannot create your computer's virtual environment, install pip packages, or run shell commands. For the full local assignment, follow the project-setup explorer inside the lesson.
Run your code, inspect variables and errors, then choose Check to evaluate the documented example plus additional cases. No external devices or credentials are involved.
Write it. Run it. Understand it.
Practice real Python helpers for maintainable projects. Create virtual environments and install packages only on your own computer, not in this browser.
Inspect the interpreter running your script
Use the provided sys import to create a dictionary named runtime containing Python's major version, the interpreter path as a string and a Boolean flag is_venv (sys.prefix != sys.base_prefix). Print exactly 'Python 3 runtime inspected'. Do not hardcode a specific interpreter path or assume the browser is a local virtual environment.
Python 3 runtime inspectedTry solving it before asking for help. Hints never show a completed program.
Your printed output and errors will appear here.
Run the code, then step through the executed lines to watch variable values change.
