Codecademy's submission correctness test (SCT) may have issued the following message ...
Oops, try again. compute_bill(['apple']) returned 7.5 instead of 2
compute_bill function, iterate through the
list that is specified as the parameter in the function header.
You have this as the function header ...
A better name for the function parameter would be
food, which you can specify as follows ...
Then, to loop through
food, which will refer to a
list when the function is called, you can have something like this as the
for loop header ...
for item in food:
for loop header,
item will represent each item within the
food, as the loop iterates.
EDITED on March 11, 2017 to provide additional information regarding iterating through a