Multiple answers on code coach | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Multiple answers on code coach

So I'm trying to practice with code coach during lessons and when I run my program it tells me I'm right but only for one solution, when I go to do the other it tells me the other is right but now it shows the original solution as wrong. So i never get the xp because I can't ever be right. I tried programming so it shows all the answers at once when I run it but then it says it's all wrong because it wants the one question answered specifically. What am I doing wrong?

11th Dec 2020, 4:33 AM
Clem hernandez
Clem hernandez - avatar
4 Réponses
+ 4
Clem hernandez in order to share the attempt you have copy paste the entire code in code playground and then share the link here. Have a look at this post for clearer instructions 👇 https://www.sololearn.com/post/75089/?ref=app
11th Dec 2020, 5:48 AM
Arsenic
Arsenic - avatar
+ 3
Although your question is not very clear, but it looks to me that you are trying to hard code your solution based on the test cases that SL tests your code on. You have to come up with a solution which would work for all the test cases as described in the question statement. if you have any problem in finding out where you are going wrong then just like 《 Nicko12 》 said, post your attempt and let the community help you fix that code.
11th Dec 2020, 4:40 AM
Arsenic
Arsenic - avatar
+ 2
Clem hernandez Hi, Can you send the link of code coach and your attempts?
11th Dec 2020, 4:37 AM
noteve
noteve - avatar
+ 2
Thanks for the quick answer, sorry if a bit vague, im pretty new at this. I use the app so I don't really know how to get you a link but Arsenic is right, but if I make a code that answers all of the "results" it says I'm wrong because it wants to show the specific answer per different problem and nothing else.
11th Dec 2020, 4:45 AM
Clem hernandez
Clem hernandez - avatar