How would you remove all the items from the d dictionary?

How would you remove all the items from the d dictionary?

Expected output:

Code:

A . d.del()
B . d.remove()
C . del d
D . d.clear()

Answer: D

Latest PCEP-30-02 Practice Questions with 124 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments