0

How can my solve the Halloween candy challenge?

11th Jan 2021, 10:34 PM
Motuncoded
Motuncoded - avatar
3 Answers
+ 2
Read the instructions, it is clearly stated there. Or show us your attempt so far so we may help you. thanks.
12th Jan 2021, 12:49 AM
noteve
noteve - avatar
+ 2
import math houses = int(input()) print(math.ceil(2/Houses*100)) Based on the problem, we need to round off our number to smallest larger integer, i.e ceiling and to be able to do this, we need first to import math module then use its function "math.ceil"
12th Jan 2021, 9:03 AM
noteve
noteve - avatar
+ 1
houses = int(input()) #your code goes here print(2*100/houses)
12th Jan 2021, 8:01 AM
Motuncoded
Motuncoded - avatar