5 lines
No EOL
83 B
Python
5 lines
No EOL
83 B
Python
def somme(T, a, b):
|
||
S = 0
|
||
for i in range(a, b+1) :
|
||
S = S + T[i]
|
||
return S |