Skip to content

Night 18: Your pet's ID card

← 30 Code Nights · Language: Python Pseudocode

Tonight: your pet's ID card

  • Your pet needs an ID card with its name, age and food.
  • You will learn one thing: dictionaries.

Words for tonight

Word Meaning
dictionary a set of keys, each with a value
key the name you look up, like "age"
value what is stored for a key, like 2

Handout

Log in or create account

IGCSE, A-Level & AP