Skip to content

Instantly share code, notes, and snippets.

@eyaltrabelsi
Created July 6, 2019 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyaltrabelsi/d6eb52da11ba07243e9f2118d48a8402 to your computer and use it in GitHub Desktop.
Save eyaltrabelsi/d6eb52da11ba07243e9f2118d48a8402 to your computer and use it in GitHub Desktop.
Python trick merge two dictionaries
>>> a = {"a":1, "b":1}
>>> b = {"b":2, "c":1}
>>> a.update(b)
>>> a
{"a":1, "b":2, "c":1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment