Examveda

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

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

B. {'a': 1, 'c': 3}

C. {'a': 1, 'b': 2}

D. {'c': 3}

Answer: Option B


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python