input: Write a function to create a copy of an array and append a value to the copied array.
  assert array_copy_and_append([2, 4, 6], 8) == [2, 4, 6, 8]
  assert array_copy_and_append([1, 2, 3], 4) == [1, 2, 3, 4]
  assert array_copy_and_append([], 5) == [5]
output: def array_copy_and_append(array, value):
      copied_array = array.copy()
      copied_array.append(value)
      return copied_array