0

What is the problem with my code? I didnt pass the test Cases. The test enter input choice 0, 2, 8.

https://code.sololearn.com/cY93XAopFXs7/?ref=app If input choice = 2, this code must print coffee[choice] then execute finally output "Have a good day". But why the output is different? It seems that my code is changed

18th Jan 2023, 2:51 AM
Oliver Pasaribu
2 Respostas
+ 4
Oliver Pasaribu in your code you are missing the second e in the word coffee on line 7
18th Jan 2023, 2:57 AM
BroFar
BroFar - avatar
+ 2
Your variable name is "coffee" but when you want to print you try to call "coffe". It' just a typo :)
18th Jan 2023, 2:58 AM
Tim G
Tim G - avatar