Python removes list value x from list1 as you can see below from the code : list1 = ['a', 'b', 'c', 'c', 'a', 'x'] list2 = list1 #Remove value 'x' from list2 list2.remove('x') #print list1 list1 ['a', 'b', 'c', 'c', 'a']
The post Remove function of the list removes value from every list present python appeared first on BlogoSfera.