seed: curriculum content
This commit is contained in:
40
1.solar-system/2.first-light/05.the-vault/index.md
Normal file
40
1.solar-system/2.first-light/05.the-vault/index.md
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
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)
|
||||
Reference in New Issue
Block a user