Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # dict_get_value.py
- d = {'r': 2, 'zzz zzz': 9, 'c': 5, 25: 12345, 'this is a string key': 'this is a string value'}
- print d.get('c')
- print d.get('zzz zzz')
- print d.get(25)
- print d.get('x')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement