Need help with Halloween candy | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Need help with Halloween candy

So I got the first two right but the last ones are locked and I can't see why houses = int(input()) #your code goes here dollars = 2 chances = round(dollars / houses * 100) print(chances)

13th Dec 2023, 3:59 AM
Marshall Lance Freeman
Marshall Lance Freeman - avatar
1 Réponse
+ 5
You need to round up (ceil)
13th Dec 2023, 5:56 AM
Mafdi
Mafdi - avatar