-2

enter image description here

Please find the above program that I have used as an example to demonstrate what happened when I tried to update one dictionary with another.

1 Answers1

0

The built-in dictionary data type does not maintain order. If you require order for your dictionary, you can try using ordered dictionaries:

https://docs.python.org/2/library/collections.html#collections.OrderedDict

burling
  • 409
  • 2
  • 5