Python Forum
Merge two dict with same key
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Merge two dict with same key
#2
you unpack arguments from left to right
so it start to unpack x first and key 'b' value is 2, then it start to unpack y and the value for key 'b' is overwritten with the new value 3
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Merge two dict with same key - by RavCOder - Oct-10-2019, 03:19 PM
RE: Merge two dict with same key - by buran - Oct-10-2019, 03:24 PM
RE: Merge two dict with same key - by stullis - Oct-10-2019, 03:28 PM
RE: Merge two dict with same key - by RavCOder - Oct-10-2019, 03:56 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020