You are viewing a single comment's thread. Return to all comments →
This is my noob code. It is not glamorous but it passed the tests
def simpleArraySum(n, ar): m = 1 a = ar[0] while m < n: a = a + ar[m] m = m + 1 return a
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 →
This is my noob code. It is not glamorous but it passed the tests