Remove Keys from Dictionary - Python
In order to delete keys from the diction, you would have to use 'del'. Here's an example:x  = {123: 456} del x[123] print(x) >> {}   If the key doesn't exist in the dictionary, it'll throw an KeyError exception. 
0 Comments 0 Shares 6K Views 0 Reviews
Sponsored

Smart Base for TV

A rotating TV base that suits your TV watching needs! This TV base can rotate and adjust to the amount of people watching it, to make it the best watching experience for everyone. It comes with a...

image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov