+ 1

How do code coaches work?

I tried to do a code coach, but i can't explain it. I can only do a sequence of outputs, but its expecting me to put give them away and eat them yourself at once. How do it work?

4th Jul 2020, 3:26 AM
Logan Developer
Logan Developer - avatar
6 Réponses
+ 2
Logan Developer I think that you are overcomplicating things to much through your code. Take a look at this code: https://code.sololearn.com/cjAZ16IGbZEC/?ref=app The question asks if you can divide the popsicles equally or not. In mathematical terms it asks for you to check if the remainder is 0 or not. If it is then you have to print out "give away" otherwise you "eat them yourself". And no there is no need to to put "give away" and "eat them yourself" at once. Have a good day, Ćheyat
4th Jul 2020, 4:16 AM
Saphal Poudyal
Saphal Poudyal - avatar
+ 5
In sololearn the code coaches will give you additional XPs and badges if you solve them but which code coach you have tried and where is your attempt .show here so that we can help you
4th Jul 2020, 3:43 AM
Nilesh
Nilesh - avatar
+ 2
Sorry, I'm sleepy, I shouldn't be using my phone in bed, but I just do anyways
4th Jul 2020, 3:34 AM
Logan Developer
Logan Developer - avatar
+ 1
Kindly show the code you have tried.😄
4th Jul 2020, 3:52 AM
Saphal Poudyal
Saphal Poudyal - avatar
+ 1
It expects one input, for multiple cases that require different outputs https://code.sololearn.com/ckuaVO25xiJ0/?ref=app
4th Jul 2020, 3:57 AM
Logan Developer
Logan Developer - avatar
0
Google translate really didnt translate your question good
4th Jul 2020, 3:31 AM
Ole113
Ole113 - avatar