Open lesson

Mission: count before preserving evidence

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

Do simple calculations in Python and build a message that says exactly what the result means.

Imani is preparing a protected copy of the Noctis 01 case file. She expects 10 numbered cards. Mara has 4 in one box and 3 other distinct cards in a second. A preservation deadline approaches in the story, but you may take all the time you need. Imani wants a message with found and missing counts, without accusing anyone.

Your mission

  1. Calculate cards found with + and cards to find with -.
  2. Use readable variables for the ten expected, two boxes, and remaining cards.
  3. Write a print instruction with an f-string giving the remaining count and unit.
  4. Explain what to check before publishing and why the calculation does not identify a responsible person.

How to check your work

  • You calculate 4 + 3 = 7 found and 10 − 7 = 3 to find.
  • Your names separate expected, found, and missing.
  • Your message says 3 cards to find without assigning blame.
  • You check that the seven cards are distinct and the expected list of ten is correct.

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.

# Calculate cards found with `+` and cards to find with `-`.
# Use readable variables for the ten expected, two boxes, and remaining cards.
# Write a `print` instruction with an f-string giving the remaining count and unit.
# Explain what to check before publishing and why the calculation does not identify a responsible person.