I have a list and I want to sum the nested list values … into a new list.
Should be easy peasy, but can’t figure it out … math.sum isn’t working for me.
Since list has sometimes ‘empty’ nested lists, I thought of perhaps replacing empty with value “0” but still, no decent sum results…
How?
(result should be:
List
- 0 List
– 1.6215 - 1 List
– 0.63811 - 2 List
– 1.24226 - 3 List
– 0
etc.