for printing the food the code I used was
for fruit in prices print fruit print prices[fruit] print stock[fruit]
this made the code come out looking exactly the same as the answer,
print food print "price: %s" % prices[food] print "stock: %s" % stock[food]
so my question is what the heck does the “price: %s” % part of both of those do and why is it necessary?