a=[1,2,3,4] b=[sum(a[0:x+1]) for x in range(0,len(a))] print(b)
Effizienter lernen, kostenlos:
Einführung in Python
7.1M Lernende
Einführung in Java
4.7M Lernende
Einführung in C
1.5M Lernende
Einführung in HTML
7.5M Lernende