I searched and found this thread from a guy asking how to clone a list in Python since just doing new_list = old_list
simply copied the reference.
The thread says that new_list = list(old_list)
works, but I have tried it out and when I edit new_list
, old_list
also changes.
Did something change or am I doing something wrong here?