Answers for "Removing Elements from Python Dictionary Using clear() method"

0

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("\nDeleting Entire Dictionary: ", Dictionary)
Posted by: Guest on May-05-2022

Code answers related to "Removing Elements from Python Dictionary Using clear() method"

Python Answers by Framework

Browse Popular Code Answers by Language