dictionaries Flashcards

1
Q

‘operator’ module

A

Exports a set of functions corresponding to the intrinsic operators of Python. For example, operator.add(x, y) is equivalent to the expression x+y.

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

dict_name.items()

A

The method items() returns a list of dict’s (key, value) tuple pairs

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

dict_name.values()

A

The method items() returns a tuple of dict’s values

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