a=[1,2,3,4]. b=[sum(a[0:x+1]) for x in range(0,len(a))] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

a=[1,2,3,4]. b=[sum(a[0:x+1]) for x in range(0,len(a))]

Print (b). What is the output of this code and explain the code

20th Jun 2020, 7:30 AM
tharun reddy
tharun reddy - avatar
1 Answer
0
answer plzzz
20th Jan 2023, 6:30 AM
Divya Agrawal