Python List copy() Method
Example
Copy thefruits
list:
fruits = ['apple', 'banana', 'cherry', 'orange']
x = fruits.copy()
Try it Yourself »x = fruits.copy()
Definition and Usage
Thecopy()
method returns a copy of the specified list.
Syntax
list.copy()
Parameter Values
No parameters