Python-Quizzes | Python Dictionary Quiz | Question 19

Question 19:Find the output of the following program:

filter_none

edit
close

play_arrow

link
brightness_4
code

dictionary ={1:"geek", 2:"for", 3:"geeks"
del dictionary 

chevron_right


(A) del deletes the entire dictionary
(B) del doesn’t exist for the dictionary
(C) del deletes the keys in the dictionary
(D) del deletes the values in the dictionary


Answer: (A)

Explanation: del deletes the entire dictionary and any further attempt to access it will throw an error.

Quiz of this Question

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.