Files
curriculum/1.solar-system/2.first-light/05.the-vault/index.md

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, like 3
  • float — decimals, like 4500.5
  • str — text in quotes, like "Apollo"
  • boolTrue 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)