Given a list of numbers in an array, write a Python program to find the sum of the elements of the array.
[1, 2, 3, 4, 5]
def sum_elements(arr):
 result = 0
 for i in arr:
 result += i
 return result

print(sum_elements([1,2,3,4,5]))