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.
2
Q
dict_name.items()
A
The method items() returns a list of dict’s (key, value) tuple pairs
3
Q
dict_name.values()
A
The method items() returns a tuple of dict’s values