In this snippet of code, I would like to make changes to a list, print it out, and then print out the original. I am changing listB, and leaving listC alone. But when I run this code, listC also gets changed for some reason. How can I fix this?
listB = [1,2,3,4,5]
listC = [1,2,3,4,5]
print(listB)
print(listC)
a = 0
while a<100:
listB[0] = a
print(listB)
listB = listC
print(listB)
print(listC)
a+=1