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!
3 Answers
+ 5
The task is to round up the result!
+ 3
Here I have a little example
https://code.sololearn.com/cDB041495gfE/?ref=app
0
Thank you so much! My bad! I did not read the problem carefully enough. It fits now. :-)