Python has some methods that dictionary objects can call. For example, dict1.clear() method removes all items from the dictionary dict1.
dict1.clear()
This page includes all dictionary methods available in Python 3. Also, the page includes built-in functions that can take dictionary as a parameter and perform some task. For example, the sort() function can take dictionary as a parameter and sort it.
sort()