Python Function Reference

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]