Open lesson

Mission: put the announcement in order

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

Predict a small program's output and compare it with what you observe, without treating the message as proof about the real world.

Noor must show a short message on the Noctis 01 team screen. The code says, in order: line 1 print('Meeting at 9'); line 2 print('Check the cards'). Mara wanted “Check the cards” first. A screenshot shows the current order. The story gives you a few minutes before the public display, but there is no time limit on your learning.

Your mission

  1. Write the current output line by line, without copying print.
  2. Write the output order Mara wants.
  3. Say the smallest code change and predict the new output.
  4. Explain what the new output proves about the program and what it cannot prove about the cards.

How to check your work

  • You give “Meeting at 9” and then “Check the cards” for current code.
  • You put “Check the cards” first in desired output.
  • You swap the two code lines and predict the new order without changing messages.
  • You say the display was corrected but the cards still need a real check.

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.

# Write the current output line by line, without copying `print`.
# Write the output order Mara wants.
# Say the smallest code change and predict the new output.
# Explain what the new output proves about the program and what it cannot prove about the cards.