Python2 Copy/Clone List

August 20, 2018

Python2

new_list = old_list[:]

or

new_list = list(old_list)

Python3

new_list = old_list.copy()
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.