Output is
a=[1,2,3,4] b=[sum(a[0:x+1]) for x in range(0,len(a))] print(b)
Correct Answer:
[1,3,6,10]
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Correct Answer:
[1,3,6,10]
need an explanation for this answer? contact us directly to get an explanation for this answer