Source Code:
(back to article)
my_dict = {"name": "John", "age": 30, "city": "New York"} my_dict.clear() print(my_dict)
Result:
Report an issue