Hi, can any one help me to explain this test task, because I think I'm missing something
The test task is this: You have been asked to create an inventory management program for a store. Use a dictionary to track all the inventory in the store along with the quantity of each item that the store has. Fill in the code provided to output the number of apples present in the store. Dictionaries can be indexed as lists, using square brackets. I already made a code that achieves the result that the test task wants , but for some reason it doesn't work, if anyone can explain me how to do it the right way or what I'm doing wrong it would help. This is the code that I made and worked: store = {"Orange": 2, "Watermelon": 0, "Apple": 8, "Banana": 42} D = input() if D == "Orange": print (store["Orange"]) elif D == "Watermelon": print (store["Watermelon"]) elif D == "Apple": print (store["Apple"]) elif D == "Banana": print (store["Banana"])