Chapter 11 - Dictionaries Flashcards

1
Q

What are the properties of python dictionaries?

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

What type of data can be a dictionary key?

A

They must be unique, the same key cannot be associated with more than one value.

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

What type of data can be a dictionary value?

A

The values need not be unique, different keys can be associated with the same value.

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

Name three types of data storage tasks that are suited to dictionaries.

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