0
Halloween candy code easy level. Can someone help what is wrong with this
houses = int(input()) print (round((2/houses )*100))
2 Réponses
+ 7
Output should be rounded up to the nearest integer. So you need to use math.ceil() instead of round ()
import math
houses = int(input())
print (math.ceil((2/houses )*100))
+ 1
Thanks