Entfernen von Elementen aus Python Dictionary unter Verwendung der Popitem () -Methode
# welcome to softhunt.net
# Creating a Dictionary
Dictionary = {0: 'Softhunt', 1: '.net', 2: 'By Ranjeet', 'user': 'Greetings to you'}
print("Dictionary", Dictionary)
# Deleting a key
# using popitem() method
pop_element = Dictionary.popitem()
print('\nDictionary after deletion: ' + str(Dictionary))
print("The arbitrary pair returned is: " + str(pop_element))
Outrageous Ostrich