Python program to find sum of elements in an array. In the Python programming language, find the number of the array. This software will assist you in adding array components. This python program for beginners can look for a number in an array.
arr = [1,1,1,1,1]; sum = 0; for i in range(0, len(arr)): sum = sum + arr[i]; print("Sum of numbers in array " + str(sum));
Sum of numbers in array 5