hi guys, I have a problem about the indentation in this practice.
If my code is like this, "return total" is aligned with "if". Then it will shows"Oops, try again. calling compute_bill with a list containing 1 apple, 1 pear and 1 banana resulted in 0 instead of the correct 7". I think aligning with "if" can show that it is in the same block with the loop. But according to the reminder, it doesn't.
def compute_bill(food): total=0 for i in food: if stock[i] > 0: total += prices[i] stock[i] = stock[i] - 1 return total
Any idea? Many thanks.