Doubts in solving Halloween Candy problem
Hello! I'm facing this problem. It's Halloween and someone has visited N number of houses. We know 3 of N houses are giving random objects: one is giving toothbrushes and two others are giving money (something like this, cannot remember exactly). So, I'm asked to write a code in which, given an N number as an input where N >= 3, it found the rounded percentage of getting money. I solved like follows, houses = int(input()) if houses >= 3: print(round((2*100)/houses)) else: print('Please, visit more houses!') So, it works fine with the two first cases, but it's failing in the rest. And, as I cannot see this rest, I have no clue and cannot figure out where is the mistake. So I've decided to kindly ask for help. Thanks and regards! PS: It's written in python