Given an array of integers,N can you find the sum of its elements?
- Complete the simpleArraySum function in the editor below. It must return the sum of the array elements as an integer. simpleArraySum has the following parameter(s):
- Print the sum of the array's elements as a single integer.
6
1,2,3,4,10,11
31
n = int(input("Size of Array: "))
arr = [int(a) for a in input("Array Value: ").split(' ')]
print(sum(arr))