Examveda

What will be the output of the following code:
my_dict = {'a': 1, 'b': 2, 'c': 3}
my_dict.items()
print(my_dict)

A. {'a': 1, 'b': 2, 'c': 3}

B. [('a', 1), ('b', 2), ('c', 3)]

C. {('a': 1), ('b': 2), ('c': 3)}

D. {'items': [('a', 1), ('b', 2), ('c', 3)]}

Answer: Option A


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python