0
Please find the bug in the code
Test cases are being failed https://code.sololearn.com/cZUd6iuzH2Dq/?ref=app
4 Answers
+ 3
You should use ceil function as told by Mohan 333
Just see this code also
houses = int(input())
import math
if houses >= 3:
p = 200 / houses
print(math.ceil(p))
#your code goes here
+ 3
Shaurya Agarwal
Use the ceil() function to round the answer.
import math
print(math.ceil(percent))
+ 3
import math
print(math.ceil(200/int(input())))
- 2
Shaurya Agarwal
import math
houses = int(input())
toothbrush = 1
dollar_bills = 2
candy = houses - 3
percent = (dollar_bills / houses) * 100
final_percent = math.ceil(percent)
print(final_percent)