make a function that copies a list and return it as another list. python3 code example
Example 1: copy a list python
new_list = old_list.copy()
# or
new_list = old_list[:]
Example 2: create copy of an array python
new_list = list.copy()
new_list = old_list.copy()
# or
new_list = old_list[:]
new_list = list.copy()