Open lesson

Mission: an open door is not a green light

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

Define permission, access, privacy limits, budget, and decision owners for a data dossier.

Voss says you may copy every file because your account can read it. Luca objects to his health being circulated. Mara hands you an approval sheet and asks you to stop publication until roles and spending are clear. The fictional presentation is near; the exercise has no timer.

Your mission

  1. State the dossier's purpose and minimum data.
  2. Complete Imani's and Luca's access and reject an unjustified view.
  3. Check estimated cost 6 against ceiling 20 without mistaking the calculation for approval.
  4. List the people whose decision and record are needed.

How to check your work

  • Timeline and vehicle purposes, no unnecessary health details.
  • Imani: timeline/source_ids; Luca: vehicle_summary; other fields denied.
  • 6 ≤ 20, but budget approval must be recorded.
  • Data owner, administrator, budget owner, and beneficiaries identified.

Course example

permissions={
 "Imani":{"timeline","source_ids"},
 "Luca":{"vehicle_summary"},
}
requests=[
 ("Imani","timeline"),("Imani","medical_details"),
 ("Luca","vehicle_summary"),("Luca","source_ids"),
]
for person,item in requests:
    print(person,item,item in permissions.get(person,set()))
budget_limit=20
estimated_cost=6
print("within_budget",estimated_cost<=budget_limit)
print("unapproved_fields",sorted({"medical_details"}-set().union(*permissions.values())))

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.

# State the dossier's purpose and minimum data.
# Complete Imani's and Luca's access and reject an unjustified view.
# Check estimated cost 6 against ceiling 20 without mistaking the calculation for approval.
# List the people whose decision and record are needed.

exemple.py

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

permissions={
 "Imani":{"timeline","source_ids"},
 "Luca":{"vehicle_summary"},
}
requests=[
 ("Imani","timeline"),("Imani","medical_details"),
 ("Luca","vehicle_summary"),("Luca","source_ids"),
]
for person,item in requests:
    print(person,item,item in permissions.get(person,set()))
budget_limit=20
estimated_cost=6
print("within_budget",estimated_cost<=budget_limit)
print("unapproved_fields",sorted({"medical_details"}-set().union(*permissions.values())))