You are viewing a single comment's thread. Return to all comments →
def simpleArraySum(arr): return sum(arr) n = int(input()) arr = list(map(int, input().split())) result = simpleArraySum(arr) print(result)
Seems like cookies are disabled on this browser, please enable them to open this website
Simple Array Sum
You are viewing a single comment's thread. Return to all comments →
For Python3 Platform
I wrote the code from scratch to get more practice