Open lesson

Mission: decide without erasing doubt

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

Choose an action from available information while keeping uncertainty visible.

Imani must sort three cards before an internal hearing. A says “release” but its source is not confirmed. B says “received” with a warehouse card. C says “release” and its source has been checked as a document, but the human author is not yet known. Voss wants both A and C in a drawer marked “guilty.” Mara asks for a technical sorting rule describing card status only.

Your mission

  1. Give A and C values for action and source_confirmed, then follow the sample if, elif, else.
  2. Explain B's path and write an or condition allowing “received” or “checked.”
  3. Write a not question for an unconfirmed source.
  4. Explain why a 'source' key on a card does not prove its value is true.

How to check your work

  • A goes to “release to check”; C to “release confirmed” as a document, without a verdict on the author.
  • B follows “other action”; you write a correct or condition.
  • You use not source_confirmed to spot unconfirmed sources.
  • You separate a field's existence from evidence of its accuracy.

Course example

action = 'release'
source_confirmed = False
if action == 'release' and source_confirmed:
    print('release confirmed')
elif action == 'release':
    print('release to check')
else:
    print('other action')

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.

# Give A and C values for `action` and `source_confirmed`, then follow the sample `if`, `elif`, `else`.
# Explain B's path and write an `or` condition allowing “received” or “checked.”
# Write a `not` question for an unconfirmed source.
# Explain why a `'source'` key on a card does not prove its value is true.

exemple.py

Declarative lesson asset; this is not a file created in the Python filesystem.

action = 'release'
source_confirmed = False
if action == 'release' and source_confirmed:
    print('release confirmed')
elif action == 'release':
    print('release to check')
else:
    print('other action')