Vidyalelo
Python · Q18

MCQs for Python Dictionaries: Exam

Programming · Python · question 18

Q18

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

A.
1
Answer
B.
a
C.
{'a': 1}
D.
'a'

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board