I want to save a copy of my old list. But whatever I do it is changing. My old list output
contains of dictionaries. output_work
is a copy. Example of output before actions:
What I was doing:
output_work = output.copy()
and
output_work = [i for i in output]
and
output_work = list(output)
and
import copy
output_work = copy.copy(output)
and
output_work = []
output_work.extend(output)
After some actions with output_work
the result is next
What can I do to keep original output
?