Code Coach says it's wrong answer when there's nothing wrong. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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")

27th Nov 2020, 11:09 AM
Aravind-R-C 06
Aravind-R-C 06 - avatar
3 Answers
+ 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.
27th Nov 2020, 11:17 AM
Shadow
Shadow - avatar
+ 4
Bhavya Sarraf Thank you for that. I realized what was wrong there. I have been using if else. And not elif.
27th Nov 2020, 11:32 AM
Aravind-R-C 06
Aravind-R-C 06 - avatar
+ 3
Can you please provide the description of that code coach ? Sorry for asking as I am using sololearn web.
27th Nov 2020, 11:29 AM
The future is now thanks to science
The future is now thanks to science - avatar