Definition
The items() method returns a view object. The view object contains the key-value pairs of the dictionary, as tuples in a list.
Syntax
dictionary.items()
Parameters
No Parameters.
Examples:
person = {
"name": "Raymond",
"age": 29,
"country": "Japan"
}
j = person.items()
print(j)