Dictionary clear() method

In Python Dictionary clear() method is used to method remove all items from the given dictionary.

Syntax:
Dictionary Clear() method don’t have any Parameter.
Example:
#dictionary method

STUDENT = {'Name': 'Phillip', 'Class': '10'}
STUDENT.clear()
print('STUDENT=', STUDENT)