+ 1

Challenge Halloween Candy, where is my fault?

I am trying to solve this challenge and i don't understand where is my fault, if anyone can suggest something please. houses = int(input()) print (round(2 / houses * 100))

30th Dec 2019, 9:23 PM
Νικος Παγκαλης
Νικος Παγκαλης - avatar
3 Antworten
+ 4
You are on the right way. But read carefully. You have to round UP to next integer. Hint: Have a look on math.ceil() function 😉
30th Dec 2019, 9:42 PM
Coding Cat
Coding Cat - avatar
+ 2
Thx a lot done :-)
30th Dec 2019, 9:58 PM
Νικος Παγκαλης
Νικος Παγκαλης - avatar
+ 1
Best answer Thomas 👍
30th Dec 2019, 10:20 PM
Rik Wittkopp
Rik Wittkopp - avatar