Open lesson

Mission: sort three incidents before the meeting

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

Tell three kinds of problems apart and follow a calm method to find and verify the first cause.

Mara gets three notes about a Noctis 01 message. A: print('Ready' causes a syntax message on line 1. B: print(1 / 0) stops during running. C: print('Check finished') displays “Check finished,” but the workshop card says “check planned.” The story's meeting is approaching; your learning has no time limit.

Your mission

  1. Classify A, B, and C as writing, running, or wrong-result problems.
  2. Fix A by changing as little as possible.
  3. Explain why B fails although its brackets are present.
  4. For C, suggest a faithful message and say how to check it.

How to check your work

  • You match A to syntax, B to runtime, and C to meaning.
  • You add just A's closing bracket.
  • You recognize division by zero has no result.
  • You replace “finished” with “planned” and compare output with the original card.

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.

# Classify A, B, and C as writing, running, or wrong-result problems.
# Fix A by changing as little as possible.
# Explain why B fails although its brackets are present.
# For C, suggest a faithful message and say how to check it.