bkerby

Untitled

Sep 30th, 2012
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. In [23]: m = {'a' : 1, 'b' : 2}
  2.  
  3. In [24]: 'a' in m and m['c'] == 3
  4. ---------------------------------------------------------------------------
  5. KeyError Traceback (most recent call last)
  6. <ipython-input-24-3db18402cae3> in <module>()
  7. ----> 1 'a' in m and m['c'] == 3
  8.  
  9. KeyError: 'c'
Advertisement
Add Comment
Please, Sign In to add comment