What is the syntax to clear a dictionary?

<dictionary name>.clear();
#examples
passwords = {'John':1123421,'Shirley':'socks', 'Galen':4234.123}
passwords.clear()
print(passwords)

#output
{}
Advertisements