0

I create a list of identical dictionaries and I would like to update only the value of one specific key of one of the dictionaries of the list, but I don't get what I expect.

Code trial

Would you know how to do that?

  • Please share the code instead of a img – Yagiz Degirmenci Jul 14 '20 at 08:29
  • *there is only one distinct dictionary object in your list*, that is how the `*` operator works with lists. In the future, please post all code as formatted text in the question itself. See [this link for how to format your code](https://meta.stackoverflow.com/questions/251361/how-do-i-format-my-code-blocks) – juanpa.arrivillaga Jul 14 '20 at 08:30
  • when you multiply your list like you did in the initialization, you are receiving the same reference n times, that's why you are overriding all of your entries – Manuel Hess Jul 14 '20 at 08:35

0 Answers0