I have an array, called archive.
I want to use the fill() function to fill it with dictionaries.
I want each element in archive to be a separate dictionary, although they should all have the same values.
The documentation for fill() says that if a dictionary is passed in as an argument, then the array will be filled with references to the same dictionary. I don't want that. I want references to unique dictionaries.
I tried to use duplicate(), but it didn't work. I still get references to the same dictionary. What do I need to do differently?
This is my code: