Advertisement
here2share

# dict_rem_keys.py

May 30th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. # dict_rem_keys.py -- Different than the other arrays
  2.  
  3. d = {3:'a',6:'b',9:'c'}
  4.  
  5. #removing a key from a dictionary
  6. del d[6]
  7. print d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement