Stocking out


#1


https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/2/3?curriculum_id=4f89dab3d788890003000096

stock[x]-=1 ,,, what this code do?? i am not clear bout this at all??


Replace this line with your code.


#2

it reduces the stock quantity of a product by one


#3

you mean to say any product???,,,or specifically apple or orange??


#4

this depends on x (your loop iterator), each iteration of the loop, x will contain a product, whatever the product is, that stock will be reduced by one


#5

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