Vidyalelo
Python · Q24

MCQs for Python Dictionaries: Exam

Programming · Python · question 24

Q24

What is the output of the following code:my_dict = 'a': 1, 'b': 2, 'c': 3print(my_dict.get('d', 0))

A.
0
Answer
B.
'd'
C.
3
D.
'a'

Answer: Option A

Solution

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