Skip to main content
PRACTICE / APPLIED PYTHON / LESSON 01

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.

6 coding challengesReal PythonIndependent checksOffline and fictional data

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.

JOELEARNS / PYTHON WORKBENCH

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.

Python 3.14 · in-browser
CHALLENGE 01 / 6 · BEGINNER

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.

EXPECTED OUTPUTPython 3 runtime inspected
script.py editableCtrl / Cmd + Enter to run
Your code is stored only in session storage when enabled. Never paste secrets. Clearing this option clears saved drafts, not the editor.
Code executes only when you choose Run or Check. No account needed.
HINTS · OPTIONAL

Try solving it before asking for help. Hints never show a completed program.

PYTHON OUTPUTReady

Your printed output and errors will appear here.

VARIABLE TRACER

Run the code, then step through the executed lines to watch variable values change.

About this environment: The Python runtime is loaded on demand from a version-pinned CDN and runs inside a sandboxed, opaque-origin browser frame. Runs have a time limit. OS/network automation is outside this introductory workbench. If your code calls input(), a response panel appears to supply text to those calls. Don't paste secrets or untrusted scripts.