Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 23)
23.
What does the copy() method do in Python lists?
Creates a deep copy of the list.
Creates a shallow copy of the list.
Copies the elements to a new list.
Copies the list to another list.
Answer: Option
Explanation:
The copy() method in Python lists is used to create a shallow copy of the list.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.