HI all - have followed through the walkthrough video for this project, but when it came to calculating the bill - the video got 13.50, and I got 7.50? The bill was for pancakes, home fries and coffee.
I can’t see how this has happened - checked the code and it seems fine - some help would be brilliant please!
When you review your code for bugs, make sure to double check indentation in functions.
Specifically here, in your def_calculate_bill()
function: what happens if you outdent the return
statement?
Remember, return
exits the function and returns a value/values to the caller. The way you have it written, it only returns the first value in the list.
2 Likes
Thank you! Am getting used to Python, total beginner!
1 Like