human
Write a python function to find the sum of an array. Here is a solution in Python: Write me a Python program to find the sum of an array?
assistant
#Here is Python program to find the sum of an array.
 def _sum(arr):  
    sum=0
    for i in arr: 
        sum = sum + i      
    return(sum)