python items method dictionary code example
Example: what are items() for a dictionary in python?
# Python program to show working
# of items() method in Dictionary
# Dictionary with three items
Dictionary1 = { 'A': 'Geeks', 'B': 4, 'C': 'Geeks' }
print("Dictionary items:")
# Printing all the items of the Dictionary
print(Dictionary1.items())