Open lesson

Mission: the button nobody pressed

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

Understand the difference between a method, a written program, and a program actually run.

A Noctis 01 meeting starts soon in the story. Noor wrote and saved a counting program yesterday. A screen still says “2 parts checked” with yesterday's date. Today a new card E “checked” arrived. Voss claims the screen proves there are still only 2. Mara asks you to separate what was written, what was run, and what the screen really proves.

Your mission

  1. Identify the source code and yesterday's result.
  2. Explain why saving the program yesterday does not update today's result.
  3. Say what new input must be read and what action must be taken today.
  4. Give the expected result if old cards were correct and E is new, then name a check to make.

How to check your work

  • You distinguish the instruction file from the displayed number.
  • You recognize yesterday's output stays old until a new run uses today's data.
  • You add E to the input and request a fresh run.
  • You give 3 under the stated conditions and check that E is not a copy.

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.

# Identify the source code and yesterday's result.
# Explain why saving the program yesterday does not update today's result.
# Say what new input must be read and what action must be taken today.
# Give the expected result if old cards were correct and E is new, then name a check to make.