print the sum of an array and the array 1-d
def _sum(array):
sum = 0
for i in array:
sum = sum + i
return (sum)
array = []
# in this line add you numbers
array = [123, 6, 13, 7]
n = len(array)
ans = _sum(array)
print('You number of array is', ans)
Comments
Leave a comment