Help me with phyton | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

Help me with phyton

https://www.sololearn.com/coach/4?ref=app In this challenge my answer is: houses = int(input()) print(int(round((2/houses)*100))) First two test cases are correct šŸ’Æ, others are incorrect šŸ˜” but they are locked šŸ”. So I can't figure out the problem šŸ˜•. Please help me.

30th Apr 2024, 7:26 AM
S 22004459 kithursana karunakaran
S 22004459 kithursana karunakaran - avatar
2 Respostas
+ 5
As the output format required, "a percentage value ROUNDED UP..."
30th Apr 2024, 8:26 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 5
import math library and use ceil instead of round.
30th Apr 2024, 11:43 AM
Gulshan Mahawar
Gulshan Mahawar - avatar