[Tutor] Deleting an entry from a dictionary

Greg Lindstrom greg.lindstrom at novasyshealth.com
Tue Aug 2 22:48:06 CEST 2005


Hello-
This must be simple, but for the life of me I can't figure out how to 
delete an entry from a dictionary.  For example,

meals = {}
meals['breakfast'] = 'slimfast'
meals['lunch'] = 'slimfast'
meals['dinner'] = 'something sensible'

How do I eliminate 'lunch' from the dictionary so that I only have 
'breakfast' and 'dinner'?

Thanks!
--greg



More information about the Tutor mailing list