Examveda

What is the output of the following code:
my_dict = {'a': 1, 'b': 2}
print(my_dict['a'])

A. 1

B. a

C. {'a': 1}

D. 'a'

Answer: Option A


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python