+ 1
Why my code in code coach isn't working?
1st two cases are successfully completed but others is not working. https://code.sololearn.com/cT9Nadcd4r9l/?ref=app
6 Answers
+ 3
You may try to replace round() by Math.ceil() or Math.floor.
Math.ceil() will get the maximum integer value of your input.
Math.floor() wil get the smallest integer value of your input.
+ 2
</CODER> I advise you try it in Halloween Candy project and test it as it will not pass the last tests. You really must use Math module else it will keep failing for whatever reason, even if the code is right as you noticed it too...
+ 1
Yes but in other cases i "fail"
+ 1
thanks i will try
+ 1
THANK YOU. It is working
0
Your code is working, if I put number inputs