How to I delete key from dictionary ?

John Hunter jdhunter at ace.bsd.uchicago.edu
Fri Dec 5 16:35:05 CET 2003


>>>>> "fowlertrainer" == fowlertrainer  <fowlertrainer at anonym.hu> writes:

    fowlertrainer> Hello python-list, How to I delete key from
    fowlertrainer> dictionary ?

    fowlertrainer>   Like this: d={1:'a'} d.delete(1) ????


    del d[1]

JDH






More information about the Python-list mailing list