Untitled
unknown
python
2 years ago
259 B
7
Indexable
# basic method of input output # input N n = int(input()) # input the array arr = [int(x) for x in input().split()] # initialize variable summation = 0 # calculate sum for x in arr: summation += x # print answer print(summation)
Editor is loading...