¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Code Coach Program Issue
I'm having an issue in satisfying all the cases in the Halloween Candy Program in Code Coach. It is as follows: houses = int(input()) result = round((2/houses)*100) print(result) Anyone has any idea why it is not working in the last 3 cases, which are hidden? (Python Language Used)
2 Respuestas
+ 4
It is stated that the result should be rounded up to the nearest integer. However, the "round" function rounds either up or down, depending on what is closer.
0
Worked like a charm! Thanks!