Apr-19-2024, 08:30 PM
I am trying to use lists as dictionary values. I am running a loop that creates a new list each time and then assigns it to a specific key. The iteration works the first time. However, when I clear the temporary list and populate the list with new information and assign the list to the next key, the keys remain unique but the previous dictionary values all become the current list values. I believe this is somehow a memory pointer issue, but how can I make this work? Thanks.