Write a python script that calculate the sum of an array
The array is [-3,9,2,1].
def array_sum(arr):
  sum_arr = 0
  for _ in range(len(arr)):
    sum_arr += arr[_]
  return sum_arr

print(array_sum([-3,9,2,1]))