Print the sum of the array's elements as a single integer
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!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
Scan and Download the App!
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!
Followers ()
Select your reason of reporting
Select your reason of reporting
We endeavor to keep you informed and help you choose the right Career path. Sign in and access our resources on Exams, Study Material, Counseling, Colleges etc.