Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
copy
copy
Return a shallow copy of the list.
Python 3.13
list
.
copy
(
)
Examples
Python 3.13
>>
>
a
=
[
1
,
2
]
>>
>
b
=
a
.
copy
(
)
[
1
,
2
]