Anonymous user
Associative array/Merging: Difference between revisions
→{{header|Python}}: oops it should not mutate
(→{{header|Python}}: added alternative) |
(→{{header|Python}}: oops it should not mutate) |
||
Line 285:
update = {"price":15.25, "color":"red", "year":1974}
result = dict(base)
print(
{{output}}
<pre>{'name': 'Rocket Skates', 'price': 15.25, 'color': 'red', 'year': 1974}</pre>
|