What is the reason for this output?
Here is an example:
list_ = [{'status': True}]
print(list_)
for dict_ in list_:
dict_['status'] = False
print(dict_)
print(list_)
Out:
[{'status': True}]
{'status': False}
[{'status': False}] # Why list_ changed? I changed only the dict_!
Why list_
changed? I changed only the dict_