Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Removing Elements from Python Dictionary Using clear() method

# welcome to softhunt.net
# Creating a Dictionary
Dictionary = {0: 'Softhunt', 1: '.net', 2: 'By Ranjeet', 'user': 'Greetings to you'}
print("Dictionary", Dictionary)

# Deleting entire Dictionary
Dictionary.clear()
print("
Deleting Entire Dictionary: ", Dictionary)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Removing #Elements #Python #Dictionary #Using #method
ADD COMMENT
Topic
Name
7+9 =