Concept

copy()

The built-in function returns a shallow copy of the list.

Note: my_list.copy() is equivalent to my_list[:]

Image 0

0

1

Updated 2021-05-19

Tags

Python Programming Language

Data Science