Help me with phyton | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponses
+ 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