跳到主要内容

Night 18: Your pet's ID card

← 30 个编程之夜 · 语言: Python 伪代码
English

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

讲义

登录或创建账户

IGCSE, A-Level & AP