Hey why this is not working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hey why this is not working?

Code: houses = int(input()) print(round((2/houses)*100)) https://www.sololearn.com/coach/4?ref=app

12th Apr 2021, 6:28 AM
Atul Jogale
Atul Jogale - avatar
2 Answers
+ 3
Hi! instead of the round() function, use the math.ceil() function
12th Apr 2021, 6:50 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
dont use round for this task. because you must round up. check your question
12th Apr 2021, 6:51 AM
Ruang