Print the sum of the array's elements as a single integer
Answer (1)
Hi there,
The code for the following, is:-
number_of_elements = int(raw_input())
array = map(int, raw_input().split())
print sum(array)
Hope it helps!
Comments (0)




