0
how can i answer the all test cases in one code?
https://www.sololearn.com/coach/3?ref=app please help.. i made a code but it didn't answered the all test cases 😓 it answered just 3/5 😢 please how can i make this code to answer all the test cases.. i wrote the same code in free coding and it succeeded! but faild in code coach
12 Answers
+ 2
Aws3tmeh that link takes us to code coach question not your solution for that code
+ 1
Re read the question again to understand what is asked or link your code so people can help you discover the problem
+ 1
Nasif Rahman
i wrote the same code in the free coding and it succeeded! but it faild on the code coach.. what's worng
+ 1
Abhay
https://code.sololearn.com/cl9LKLumt75V/?ref=app
this is the code
+ 1
Nasif Rahman
yes it gives a correct.. but he gave me a 5 defferent examples.. everyone from that needs a defferents vadiable's value.. so it needs tow codes.. that's my problem
+ 1
Aws3tmeh that's why I said re read the question again ,whatever you are doing doesn't makes sense at all according to what is asked !
+ 1
Abhay
ok what's the right code to codecoach can understand that?
the output was correct 100% but codecoach don't like that
+ 1
Aws3tmeh it's not about getting right code to satisfy the tests lol ,you need to understand what they are asking and then implement it ,
+ 1
Nasif Rahman
oh..i was had to use (else)?
+ 1
Abhay
Nasif Rahman
ok..thanks guys 🌹🙏❤️
+ 1
siblings = int(input())
popsicles = int(input())
#your code goes here
if (popsicles % siblings ==0 ):
print("give away")
else:
print("eat them yourself")
0
Abhay
i linked it 👍