Answers for "what are items() for a dictionary in python?"

0

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())
Posted by: Guest on April-19-2021

Code answers related to "what are items() for a dictionary in python?"

Browse Popular Code Answers by Language