Almost rightLesson 011 min
This loop looks right. It skips one item
A function meant to add up prices returns 30 for 5, 10 and 20, with no error or warning. The loop counts from one, but Python numbers a list from zero, so the first price is never added. This is an off-by-one error. The fix is to loop over the prices themselves, so there is no start or end to get wrong.
Remember
Test code that returns a number on a small case you can work out by hand.
