Why is compute_bill returning the wrong value?
A common issue here is indenting the
return statement inside of the
for loop, which causes the loop to only be able to possibly run one time before the function
returns and exits.
If your code looks something like the code below, unindent your
return statement to be on the same level as the
for, not inside of it.
for item in my_list: my_var += 10 return my_var