How this program works??? | Sololearn: Learn to code for FREE!

0

How this program works???

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

7/15/2020 11:31:00 AM

Shreepriya HA

2 Answers

New Answer

0

Thank you