Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | jujumumu |
If I copy a dictionary from another variable, then if I change something about 1 of the variables the other one also changes. How can I avoid that?
Example:
var list = {1:1}
var copy = list
copy.1=2
print(list.1)
This would print 2 instead of 1