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


#1


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







#2

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


#3

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.


#4

WOOO! Thanks again dude :smiley: it worked!


#5

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