Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Dictionary, key, entry?

Também chamado de: dictionary · entry · dictionary key

Definition 26.1 Primary & Middle School Computer Science · Capítulo 26 — Dictionaries

A dictionary is a value that holds pairs: each pair, an entry, links a key to a value. The keys are all different; d[key] gives the value linked to key. A dictionary is written between braces, with a colon between each key and its value: {"Sami": 12, "Noor": 13}.

A dictionary as two columns: each key leads to its value.
A dictionary as two columns: each key leads to its value.
Finding Grandma: a walk through a list against one step in a dictionary. How a dictionary goes straight to its key is explained in the university books.
Finding Grandma: a walk through a list against one step in a dictionary. How a dictionary goes straight to its key is explained in the university books.
Ler no capítulo →