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 Comentários 0 Compartilhamentos 6K Visualizações 0 Anterior
Patrocinado

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