+ 3
Code Coach says it's wrong answer when there's nothing wrong.
So I was doing a code coach with Python. I wrote down the code. I got 3/5 test cases right but the other cases are locked. And it shows that my answer isn't correct. There seems to be no problem with my code as I ran it through the codeBit and got the desired output that the code coach wanted, all the time. Is it a problem from me or on the coach. I'd love to hear a feedback and a help. (Since I can't share the code for obvious reasons, here's the coach name --> "Gotham City")
5 Réponses
+ 7
You can share your code by copying it into a SL project and linking that here. From the description alone, it's hard to tell where the issue might be.
By the way, some test cases are locked to prevent hardcoding the solutions. They won't unlock, but you must nonetheless pass all test cases to pass the challenge.
+ 4
Bhavya Sarraf Thank you for that. I realized what was wrong there. I have been using if else. And not elif.
+ 3
Can you please provide the description of that code coach ?
Sorry for asking as I am using sololearn web.