Pls can someone help me out on how to sum a nesting list like this
cash = [10, 20, 30, 100, [200, [400], 800], 80]
First question is to add 200 and 800 and I was able to get that. Through this method
print(cash[4][0] + cash[4][2])
And the output was 1000 which is very correct.
The second question is to sum 400 and 80
But when I try this method
print(cash[4][1] + cash[5])
I got error message that it can only concatenate list and not int. So am stuck here . If am able to solve this then the third questions will be easy to answer