Will appending to a list in python a dictionary that already exists in the list change the item or appended at the end?
For example,
I have this in the same run of a loop (this script fills my db with movies)
movie = {'id': 102, 'name': 'The Dark Knight', 'release_date': 0}
movies.append(movie)
Then I update my movie entry with a value for release_date, like so; (with the same run of the loop)
movie = {'id': 102, 'name': 'The Dark Knight', 'release_date': '2018-08-30'}
movies.append(movie)
Will it update the past entry or append a new one at the end there?