could someone explain why this thing exists and how to counteract it
a = [1, 2, 3]
b = a
b[1] = 0
print(a)
a = [1, 0, 3]
Its bugging me, because, when I use this with int, then it acts normally.
a = 1
b = a
b +=1
print(a)
a = 1
It`s really messing with some of my code
Thanks in advance