I want to delete a element from an array without changing the original. Like this:
original_array = [12,13,14,15]
new_array = function_to_delete_a_element(element_to_delete = 14, array = original_array)
print(new_array)
>[12,13,15]
print(original_array)
>[12,13,14,15] #Here, all the functions that I have looked for to eliminate, change the original array, I want to keep it
Above is what I want to do, but all the functions I have found also remove the element from the original array, and when i print the original array, throw this:
print(original_array)
>[12,13,15] # I want to get this ---> [12,13,14,15]