Dictionary Flashcards
(1 cards)
1
Q
items()
A
The items() method returns a view object that displays a list of dictionary's (key, value) tuple pairs. The items() method doesn't take any parameters.
e.g.: dictionary.items()
items()
The items() method returns a view object that displays a list of dictionary's (key, value) tuple pairs. The items() method doesn't take any parameters.
e.g.: dictionary.items()