def somme(T, a, b): S = 0 for i in range(a, b+1) : S = S + T[i] return S