0

My code appears not to work! Why?

Hi, coders, I need your help. There is this challenge in the code coach: https://www.sololearn.com/coach/4?ref=app This is my code to solve it: houses=int(input()) while houses<3: houses=int(input()) ptg=2/houses*100 print(round(ptg)) In the code coach, the first two test cases are OK (my output and the expected output match), but the rest of them say that my output obviously does not match the expected output. Where am I making a mistake? Thank you!

30th Aug 2021, 7:29 AM
StaĆĄa Sihrovski
StaĆĄa Sihrovski - avatar
3 Answers
+ 5
The task is to round up the result!
30th Aug 2021, 7:44 AM
Angela
Angela - avatar
+ 3
30th Aug 2021, 7:49 AM
Angela
Angela - avatar
0
Thank you so much! My bad! I did not read the problem carefully enough. It fits now. :-)
30th Aug 2021, 8:30 AM
StaĆĄa Sihrovski
StaĆĄa Sihrovski - avatar