This is a snippet of my code
print (stats)
print (mstats)
stats[1] -= round(dam)
print (mstats)
print (stats)
stats is the list that should be edited but mstats is edited as well. I don't know why and was wondering how to stop mstats from changing.
This is what the code outputs:
['One', 142, 27, 0.025, 12, 2.3, 8, 14, '']
['One', 142, 27, 0.025, 12, 2.3, 8, 14, '']
['One', 133, 27, 0.025, 12, 2.3, 8, 14, '']
['One', 133, 27, 0.025, 12, 2.3, 8, 14, '']
The index [1] changes from 142 to 133 in both lists when it should only in one. Please can you help me? Thanks