chevron_left
Documentation
check_circle
Mark as learned thumb_up
0
thumb_down
0
chat_bubble_outline
0
auto_stories new
settings
Python Dictionary | clear method
Operations
chevron_rightDictionary Operations
chevron_rightDocumentation
schedule Jul 1, 2022
Last updated local_offer Python
Tags tocTable of Contents
expand_more Check out the interactive map of data science
Python's dict.clear()
method removes all items from a dictionary.
Parameters
No parameters.
Return value
None
Examples
To remove all items from the dictionary car
:
{}
Published by Isshin Inada
Edited by 0 others
Did you find this page useful?
thumb_up
thumb_down
Ask a question or leave a feedback...
Official Python Documentation
https://docs.python.org/3/library/stdtypes.html#dict.clear
thumb_up
0
thumb_down
0
chat_bubble_outline
0
settings
Enjoy our search
Hit / to insta-search docs and recipes!