¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
What is missing in this code?
I'm trying to do Halloween Candy challenge but it always says there's problem after 3rd case. What am I missing? houses = int(input()) if houses >=3: print(round(2/houses*100))
5 Respuestas
+ 3
Instead of round, you should use math.ceil
+ 2
Maybe you forgot to import math
+ 2
Some of the challenges require you to import library. Search for modules about math, date and datetime, it will come in handy.
+ 1
Okay, thank you.
Edit: tried and it gave an error.
+ 1
I don't know that, I'll check it 👍