Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new_dic[1][2]=5
- KeyError: 1
- new_dic = {}
- new_dic[1] = {}
- new_dic[1][2] = 5
- new_dic.setdefault(1, {})[2] = 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement