Dictionaries Flashcards

(1 cards)

1
Q

What is a dictionary?

A

An abstract data structure for storing key-value pairs.

Each key has a single associated value. Values are directly accessed by the corresponding keys.

A hash table is a way of implementing a dictionary.

The key acts like the ‘index’ of the dictionary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly