You are viewing a single comment's thread. Return to all comments →
**You could just do **
for i in ar: sum1 = sum1 + ar
**instead of **
for i in range(len(ar)): sum1 = sum1 + ar[i]
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 →
**You could just do **
**instead of **