Entfernen von Elementen aus Python Dictionary mit DEL -Schlüsselwort DEL
# welcome to softhunt.net
# Creating a Dictionary
Dictionary = {0: 'Softhunt', 1: '.net',
2:{'i' : 'By', 'ii' : 'Ranjeet', 'iii' : 'Andani'}, 3: 'Greetings'}
print('Initial Dictionary: ', Dictionary)
# Deleting a Key value
del Dictionary[1]
print("\nDeleting a specific key: ", Dictionary)
# Deleting a Key from
# Nested Dictionary
del Dictionary[2]['i']
print("\nDeleting a key from Nested Dictionary: ", Dictionary)
Outrageous Ostrich