851 B
851 B
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| challenge | The Vault | 50 | 25 | 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, like3float— decimals, like4500.5str— text in quotes, like"Apollo"bool—TrueorFalseA dictionary maps keys to values. Implement a function
vaultthat 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)