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

17th Sep 2020, 9:38 AM
Aws3tmeh
Aws3tmeh - avatar
12 Answers
+ 2
Aws3tmeh that link takes us to code coach question not your solution for that code
17th Sep 2020, 9:46 AM
Abhay
Abhay - avatar
+ 1
Re read the question again to understand what is asked or link your code so people can help you discover the problem
17th Sep 2020, 9:42 AM
Abhay
Abhay - avatar
+ 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
17th Sep 2020, 9:44 AM
Aws3tmeh
Aws3tmeh - avatar
17th Sep 2020, 9:48 AM
Aws3tmeh
Aws3tmeh - avatar
+ 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
17th Sep 2020, 9:50 AM
Aws3tmeh
Aws3tmeh - avatar
+ 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 !
17th Sep 2020, 9:52 AM
Abhay
Abhay - avatar
+ 1
Abhay ok what's the right code to codecoach can understand that? the output was correct 100% but codecoach don't like that
17th Sep 2020, 9:54 AM
Aws3tmeh
Aws3tmeh - avatar
+ 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 ,
17th Sep 2020, 9:55 AM
Abhay
Abhay - avatar
+ 1
Nasif Rahman oh..i was had to use (else)?
17th Sep 2020, 9:56 AM
Aws3tmeh
Aws3tmeh - avatar
+ 1
Abhay Nasif Rahman ok..thanks guys 🌹🙏❤️
17th Sep 2020, 9:59 AM
Aws3tmeh
Aws3tmeh - avatar
+ 1
siblings = int(input()) popsicles = int(input()) #your code goes here if (popsicles % siblings ==0 ): print("give away") else: print("eat them yourself")
18th Sep 2020, 1:56 PM
$aiNadh
$aiNadh - avatar
0
Abhay i linked it 👍
17th Sep 2020, 9:45 AM
Aws3tmeh
Aws3tmeh - avatar