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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments