I hope I understood your requirement right... so here is what I think you should do:
You can loop over keys and values in your dictionary like this:
Inside the loop, you can check if "key" (which is a string) contains substring "juice" with:
You can loop over keys and values in your dictionary like this:
for key, value in inventory.iteritems():
Inside the loop, you can check if "key" (which is a string) contains substring "juice" with:
if "juice" in key