removing dictionary key-pair
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Fri Jun 9 10:23:41 EDT 2006
JD>I try to remove a dictionary key-pair (remove an entry),
>>> d = {1:2, 3:4}
>>> d
{1: 2, 3: 4}
>>> del d[1]
>>> d
{3: 4}
Bye,
bearophile
More information about the Python-list
mailing list