Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think I found a way to do it: LSC_20 = [sum(LC_20[:i+1]) for i in range(len(LC_20))] Note: LC_20 is the name I put to the first list. Is it a good method?

I think I found a way to do it: LSC_20 = [sum(LC_20[:i+1]) for i in range(len(LC_20))] Note: LC_20 is the name I put to the first list. Is it a good method?I'm closing this post since the problem is now solved. Sorry for bothering you, guys.