lost and found ( for me ? )

how to append dictionary into dictionary

small tips

>>> a = {}
>>> b = {'a':3}
>>> c = {'b':4}

>>> b
{'a': 3}
>>> c
{'b': 4}

>>> a.update(b)
>>> a.update(c)
>>> a
{'a': 3, 'b': 4}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.