Source Code:
(back to article)
my_dict = {"name": "John", "age": 30, "city": "New York"} print(my_dict.items()) # Output: dict_items([('name', 'John'), ('age', 30), ('city', 'New York')])
Result:
Report an issue