+ 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?
6 Respostas
+ 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
+ 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
+ 2
Sorry, I'm sleepy, I shouldn't be using my phone in bed, but I just do anyways
+ 1
Kindly show the code you have tried.😄
+ 1
It expects one input, for multiple cases that require different outputs
https://code.sololearn.com/ckuaVO25xiJ0/?ref=app
0
Google translate really didnt translate your question good