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