+ 1

Pancakes, error or am I stupid?

I get a green check for test case one but it fails me for something I can see doesn't even exist in my code? I can see the outputs match. Am I doing something wrong still?

13th Feb 2025, 3:51 AM
Rodney Burnette
Rodney Burnette - avatar
4 Antworten
+ 3
What is your question? What is the task description? And how your code is made? Please run this code, read the contents, then provide the essential details. Otherwise, no one know what your question is. https://sololearn.com/compiler-playground/WgUUoIFf6Fdm/?ref=app
13th Feb 2025, 5:55 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 2
Rodney Burnette did you try breakfasts[item] = "Pancakes" This assigns the index based on item in the breakfast list
13th Feb 2025, 6:11 AM
BroFar
BroFar - avatar
0
breakfasts [0] = "Pancakes" It gives me a green check and still fails me
13th Feb 2025, 12:03 PM
Rodney Burnette
Rodney Burnette - avatar
0
Rodney Burnette Do not hardcode a 0 in the brackets The answer is exactly what I showed you. breakfasts[item] = "Pancakes"
13th Feb 2025, 2:38 PM
BroFar
BroFar - avatar