t = [3, 6, 11, 18] # version 1 print(t[0]+t[1]+t[2]+t[3]) # version 2 total = 0 for k in range(0,len(t)) : total = total + t[k] print(total) # version 3 total = 0 for nombre in t : total = total + nombre print(total)