Python list.copy() Method
The copy() method returns a shallow copy of the list.
Equivalent to a[:].
Syntax
list.copy()
Parameters
No parameters.
Return Value
A list object.
Example
Using the copy() method:
Output
Click Run to execute your code
Enjoying these tutorials?