[Solved] Running total for list of dict
I assumed date is increasing order. # store values tot = {} # the last date date0 = Dict1[-1][‘date’] # easier to work from back, i found for line in Dict1[-1::-1]: date, name, qty = [line[x] for x in ‘date’, ‘name’, ‘qty’] # add the value to all subsequent days for d in range(date, date0+1): … Read more