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: https://www.codecademy.com/courses/learn-python-3/projects/basta-fazoolin
My code (up to step 10): https://gist.github.com/eb55af418d337e33f739dbdffaf65a83

Thanks

Hi,

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