Open lesson

Mission: sort the night's values

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 common Python value types and keep text, numbers, yes/no answers, and missing information apart.

An independent investigator asks for a readable inventory of record fields. Mara gives you six cards: A 'hero-07', an ID written in a row; B '23:40', a time; C 0, human approvals found; D 1.5, an estimated duration; E False, “check confirmed”; F None, a witness name not entered. Voss wants to treat A as proof against you. Describe the values without exceeding the evidence.

Your mission

  1. Match A through F to Python types or the special absence None.
  2. Explain the difference between A as text and evidence that a person really used an account.
  3. Compare C and F: why are 0 and None different?
  4. Give the investigator a careful sentence and one further check.

How to check your work

  • You identify A and B as str, C as int, D as float, E as bool, and F as None.
  • You treat A's ID as a claim in a record, not proof of action.
  • You explain that C is a count equal to zero while F has no recorded value.
  • You ask for independent sign-in or authorization evidence before blaming anyone.

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.

# Match A through F to Python types or the special absence `None`.
# Explain the difference between A as text and evidence that a person really used an account.
# Compare C and F: why are `0` and `None` different?
# Give the investigator a careful sentence and one further check.