clear

Description

Removes all items from the dictionary.

Syntax

dict. clear()

Return Value

None

Time Complexity

#TODO

Example

>>> d = {'a': 1, 'b': 2}
>>> d
{'a': 1, 'b': 2}
>>> d.clear()
>>> d
{}

See Also

#TODO