Nov-16-2019, 05:22 PM
(This post was last modified: Nov-16-2019, 05:22 PM by Gribouillis.)
After the statement
list2 = list1
, the two lists are the very same object. In fact there is only one list with two names, list1 and list2. The statement simply creates a new name for the object currently named list1. If you want a new object, make a copylist2 = list(list1)