Open lesson

Mission: the vendor copy

Command palette

This mission workspace keeps code and notes in this browser tab. Export them before closing it. Running code is practice, not an automatic grade for the mission.

Brief

Recognize a Python version and project dependencies, explain a virtual environment and compare two outputs without too quickly calling a difference fraud.

In the story, Imani needs an opinion in fifteen minutes. Voss shows output from the vendor’s script and claims it cancels yours. The project requires Python >=3.12,<3.13 and fictional receipt-parser==2.1. Mara’s computer has Python 3.12 and package 2.1; the vendor computer has Python 3.11 and package 1.9. Both use a copy of check.py. Original receipts are kept apart.

Your mission

  1. Say which computer meets each requirement and which does not.
  2. Explain why directly comparing their outputs would mislead.
  3. Name two readings or items to inspect to identify the environment without triggering a sync.
  4. Suggest the next check and explain what the mismatch does not prove.

How to check your work

  • Mara’s computer meets both requirements; the vendor’s meets neither the Python range nor package version.
  • Different environments prevent attributing different output solely to the file.
  • Record Python version and package configuration; use commands in the right context.
  • Plan a controlled reproduction on a copy; accuse nobody based only on this difference.

Code

Use Tab to leave the editor. Ctrl+Enter runs the source. The lines beginning with # are task reminders. Python ignores them. Write your code beneath them.

Python console

Loading laboratory…

Explore Python or SQL here; this is not an operating-system shell.

This is a disposable browser experiment. The code run here is not recorded as a completed mission.

Each command starts a fresh disposable worker: it runs a captured copy of your current source, then your command with the lesson fixtures. Changes are discarded afterward. Commands never save source or award XP. Ctrl+Enter executes the command.

Virtual workspace files

Source and declarative assets are readable here without JavaScript. Python input files are created at runtime; SQL setup initializes the disposable database.

source.py

Current editor source. Inspection shows your current edits.

# Say which computer meets each requirement and which does not.
# Explain why directly comparing their outputs would mislead.
# Name two readings or items to inspect to identify the environment without triggering a sync.
# Suggest the next check and explain what the mismatch does not prove.