Attempt the question, check the explanation, and continue with similar questions to build confidence before exams.
list2 = list1 copies the reference of list1.
list2 = list1[:] creates a shallow copy of list1.
Using copy.copy() creates a reference, not a copy.
list2 = list(list1) ensures list2 is a new list.
Video Explanation
Watch Video Solution
Login to get access
Continue with nearby questions to strengthen the same chapter concept while you still have the context fresh in mind.