What will be the output of the following Python code snippet? >>> a={1:"A",2:"B",3:"C"} >>> del a

Question:
What will be the output of the following Python code snippet?

>>> a={1:"A",2:"B",3:"C"}
>>> del a

1.method del doesn’t exist for the dictionary

2. del deletes the values in the dictionary

3.del deletes the entire dictionary

4. del deletes the keys in the dictionary

Posted Date:-2021-12-31 09:53:50


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!