Stock problem


#1





kindly tell what am doing wrong, because error is there.


#2

remove the function call at line 28, it changes the stock before exercise can be validated


#3

now it is working, but what is the point then, i couldnt get. wasnt our objective to print total cost incurred for our shopping_list


#4

yes it is, but unfornately calling the function will manipulate the stock,which causes problems

outside the lessons, its perfectly valid to call the function, only now for validition purpose you must briefly remove your function call


#5

thanks sir for your guidance.:slightly_smiling_face:


#7

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