In my solution first 2 outputs are correct but 3 of them are incorrect but I can't see output of my code. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

In my solution first 2 outputs are correct but 3 of them are incorrect but I can't see output of my code.

2nd Nov 2020, 1:40 AM
S.L. Sashika Sandeepa Damseth
S.L. Sashika Sandeepa Damseth - avatar
4 Answers
0
Challenge says round UP to the nearest whole number. Use math.ceil instead of round
2nd Nov 2020, 2:53 AM
Benjamin Jürgens
Benjamin Jürgens - avatar
+ 1
Which language? Which challenge? Where is your code?
2nd Nov 2020, 2:20 AM
Benjamin Jürgens
Benjamin Jürgens - avatar
0
Python Halloween candy houses = int(input()) posibility = 100 * (2 / houses ) posibility = int(round(posibility, 0)) print(posibility)
2nd Nov 2020, 2:22 AM
S.L. Sashika Sandeepa Damseth
S.L. Sashika Sandeepa Damseth - avatar
0
Thx
2nd Nov 2020, 3:59 PM
S.L. Sashika Sandeepa Damseth
S.L. Sashika Sandeepa Damseth - avatar