function to create a copy of a list object in python code example Example: copy a list python new_list = old_list.copy() # or new_list = old_list[:]