[Tutor] Key Error

Sara Johnson sarliz73 at yahoo.com
Sun Jul 8 07:34:33 CEST 2007


Sorry, this is probably too general a question, but I can't find any specific information on it.  What exactly is a "key error" and how do I clear it?
   
  I entered something like this:
   
  abcd=h[key]['ABCD']
   
  and when I run it I'm getting 
   
  KeyError: 'ABCD'
   
  What does this mean?
   
  Thanks!

       
---------------------------------
Shape Yahoo! in your own image.  Join our Network Research Panel today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070707/dffb26b2/attachment.htm 


More information about the Tutor mailing list