Posts by Rodrigo Meireles • 11 points
1 post
-
1
votes2
answers522
viewsA: Remove function in one list alters elements in another Python3
In Python when you do list1 = list2 then the two lists will point to the same object and changing the value of one implies changing the value of another. You can solve your problem by making a copy…