Examveda

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

A. 0

B. 'd'

C. 3

D. 'a'

Answer: Option A


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python