Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # add_item_to_dict.py
- data = {
- 'item a': 1,
- 'item b': 2,}
- data['item c'] = 3
- data.update({'item d': 4,'item e': 5,'item f': 6})
- for i in data.items(): print i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement