Open lesson

Mission: open a clue without opening a bill

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

Make a simple monthly estimate, compare it to a budget, and distinguish a spending alert from a real limit.

Imani wants to inspect the supplier account and preserve the pages before any further change; she does not yet know who used the account. Mara first asks for an estimate: a poorly configured experiment could exceed the practice budget. The scene gives you a fictional hour before a meeting, but the exercise has no real countdown. You have only the four invented worksheet prices, not a cloud account.

Your mission

  1. Calculate storage, compute, queries, and transfer separately with units.
  2. Give the total and the gap from the fictional €12 budget.
  3. Recalculate the total with ten daily queries.
  4. Explain an 80% alert's limit and the decision before any real experiment.

How to check your work

  • Entries are €2, €6, €6, and €1.
  • Total €15, €3 over budget.
  • Ten queries daily give €12 read cost and €21 total.
  • The €9.60 alert informs but may not cap; no spending without control and authorization.

Course example

# Fictional prices for arithmetic practice, not a provider quote.
storage = 100 * 0.02
compute = 2 * 30 * 0.10
scanned_gb = 10 * 5 * 30
queries = (scanned_gb / 1000) * 4
transfer = 10 * 0.10
total = storage + compute + queries + transfer
budget = 12
print(storage, compute, queries, transfer)
print(total, total - budget)

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.

# Calculate storage, compute, queries, and transfer separately with units.
# Give the total and the gap from the fictional €12 budget.
# Recalculate the total with ten daily queries.
# Explain an 80% alert's limit and the decision before any real experiment.

exemple.py

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

# Fictional prices for arithmetic practice, not a provider quote.
storage = 100 * 0.02
compute = 2 * 30 * 0.10
scanned_gb = 10 * 5 * 30
queries = (scanned_gb / 1000) * 4
transfer = 10 * 0.10
total = storage + compute + queries + transfer
budget = 12
print(storage, compute, queries, transfer)
print(total, total - budget)