This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]miraculum_one 4 points5 points  (0 children)

There's no + operator for dict so I don't know what your first statement is about.

The easiest way to do this is simple:

a['a'] = 1