8 lines
No EOL
139 B
Python
8 lines
No EOL
139 B
Python
def gettotal(l):
|
|
total = 0
|
|
for i in l:
|
|
total += i
|
|
return total
|
|
|
|
result = gettotal([1, 2, 3, 4, 5])
|
|
print(result) |