daily = [10, 20, 30] total = 0 pay = [] for i in range(len(daily)): total += daily[i] pay.append(total) print(pay)
To embed this project on your website, copy the following code and paste it into your website's HTML: