Basta Fazoolin' Step 9 Issue

Why is my .calculate_bill method only returning the price of the first item of the purchased_items list?
My code seems correct and should return 13.5, instead only returns 7.5 - why?

Problem link:
My code (up to step 10):



Indentation issues with the for-loop means it’s not iterating more than once!

Welcome to the forums :slight_smile:

1 Like

Oh gosh what a noob mistake :sweat_smile:

Thank you for the prompt response and I shall keep an eye out for that in the future!

No worries. It happens with python!

1 Like