The items() method returns a view object . The view object contains the key-value pairs of the dictionary, as tuples in a list.
The items() method returns a view object . The view object contains the key-value pairs of the dictionary, as tuples in a list.