I have a bit of a strange issue with deleting items from a list. If list b is created by copying list a wholesale, then the first item in the list is deleted, it appears to be deleted from both a and b using the below syntax!
a = [0, 1, 2, 3, 4, 5]
b = a
del b[0]
print a
print b
Can someone explain why that is please? I only want to delete the first item in the list from b, not a.
Thanks