# Declare a dictionary
dict = {"Name": "Zara", "Age": 7, "Class": "First"}

# Accessing the dictionary with its key
print("dict['Name']: ", dict["Name"])
print("dict['Age']: ", dict["Age"])

dict["Age"] = 8
# update existing entry
dict["School"] = "DPS School"
# Add new entry

# Accessing the dictionary with its key
print("dict['Age']: ", dict["Age"])
print("dict['School']: ", dict["School"])


del dict["Name"]
# remove entry with key 'Name'
dict.clear()
# remove all entries in dict
del dict
# delete entire dictionary

print("dict['Age']: ", dict["Age"])
print("dict['School']: ", dict["School"])