41 lines
851 B
Markdown
41 lines
851 B
Markdown
---
|
|
type: challenge
|
|
title: "The Vault"
|
|
xp: 50
|
|
duration: 25
|
|
difficulty: 1
|
|
---
|
|
|
|
# The Vault
|
|
|
|
> **[INCOMING — Mission Control, Earth]**
|
|
>
|
|
> Cadet, every program needs to remember things. Variables hold
|
|
> values; types tell Python what kind of value:
|
|
>
|
|
> - `int` — whole numbers, like `3`
|
|
> - `float` — decimals, like `4500.5`
|
|
> - `str` — text in quotes, like `"Apollo"`
|
|
> - `bool` — `True` or `False`
|
|
>
|
|
> A **dictionary** maps keys to values. Implement a function `vault`
|
|
> that returns a dictionary with exactly these four keys and values:
|
|
>
|
|
> ```
|
|
> "mission": "Apollo"
|
|
> "crew_size": 3
|
|
> "fuel_kg": 4500.5
|
|
> "ready": True
|
|
> ```
|
|
>
|
|
> [END TRANSMISSION]
|
|
|
|
## Your Task
|
|
|
|
Open `starter/starter.py`. Replace `pass` with `return { ... }`.
|
|
|
|
## Objectives
|
|
|
|
- `vault()` returns a dict
|
|
- Each key holds the exact value above (and the right type)
|