Python Dictionary clear() Method

Python Dictionary clear() Method

  • The clear() method removes all the elements from a dictionary.

Syntax

  • dictionary.clear() 

Parameter Values

  • No parameters

 

 

Comments