meals.pop(key) will do it.<br>
Example:<br>
&gt;&gt;&gt; meals = {}<br>
&gt;&gt;&gt; meals['breakfast'] = 'slimfast'<br>
&gt;&gt;&gt; meals['lunch'] = 'slimfast'<br>
&gt;&gt;&gt; meals['dinner'] = 'something sensible'<br>
&gt;&gt;&gt; meals<br>
{'lunch': 'slimfast', 'breakfast': 'slimfast', 'dinner': 'something sensible'}<br>
&gt;&gt;&gt; meals.pop(&quot;breakfast&quot;)<br>
'slimfast'<br>
&gt;&gt;&gt; meals<br>
{'lunch': 'slimfast', 'dinner': 'something sensible'}<br><br><div><span class="gmail_quote">On 8/2/05, <b class="gmail_sendername">Greg Lindstrom</b> &lt;<a href="mailto:greg.lindstrom@novasyshealth.com">greg.lindstrom@novasyshealth.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello-<br>This must be simple, but for the life of me I can't figure out how to
<br>delete an entry from a dictionary.&nbsp;&nbsp;For example,<br><br>meals = {}<br>meals['breakfast'] = 'slimfast'<br>meals['lunch'] = 'slimfast'<br>meals['dinner'] = 'something sensible'<br><br>How do I eliminate 'lunch' from the dictionary so that I only have
<br>'breakfast' and 'dinner'?<br><br>Thanks!<br>--greg<br><br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">
http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>