Python List copy() Method

❮ List Methods


Example

Copy the fruits list:

fruits = ['apple', 'banana', 'cherry', 'orange']

x = fruits.copy()
Try it Yourself »

Definition and Usage

The copy() method returns a copy of the specified list.


Syntax

list.copy()

Parameter Values

No parameters


❮ List Methods

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.