Method 1: Use a slice containing the whole list
list2 = list1[:]
Method 2: Use the list
constructor
list2 = list(list1)
Method 3: Use copy.copy()
from copy import copy list2 = copy(list1)
You can use copy.deepcopy()
if you want to copy the objects in the list as well.
Reference: copy — Shallow and deep copy operations