A Day at the Supermarket-Stocking Out-12/13(I have no clue what the problem is)


I’ve spent ages on this but still can’t seem to diagnose the problem :confused:
Any help is accepted thanks! :smiley:


here’s the rest of the instructions and the hint if needed.


A function ends the moment the return keyword is reached. Look at where you placed return (and how it’s indented). How are we going to subtract 1 from the stock? Also, review how you’re subtracting 1 from stock[item], we need to assign it, too. Reread the instructions, :slight_smile: they give a good hint on what to do.


WOOO! Thanks again dude :smiley: it worked!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.