Associative array/Merging: Difference between revisions

Content deleted Content added
JoeStrout (talk | contribs)
added Python solution
JoeStrout (talk | contribs)
Line 56:
<pre>{"color": "red", "name": "Rocket Skates", "price": 15.25, "year": 1974}</pre>
 
=={{header|Python}}==
As of Python 3.5, this can be solved with the dictionary unpacking operator.
<lang Python>base = {"name":"Rocket Skates", "price":12.75, "color":"yellow"}