Hi, i think I'm missing something, can any one tell what I'm doing wrong?
I'm doing this test task Dictionaries can be indexed as lists, using square brackets. Fill in the code provided to output the number of apples present in the store. store = {"Orange": 2, "Watermelon": 0, "Apple": 8, "Banana": 42} I did this code that does what the test task ask me to do: 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"]) For some reason that I don't know, when I'm using this code in the test task code play ground it doesn't work, but in the normal code play ground it works. I don't know if I'm missing something, if anyone one know how to fix it I'll appreciate it.