How to solve Halloween candy problem?
I had taken a quiz and i tried to solve it but some thing is of i don't what but here its ; Halloween Candy +10 XP You go trick or treating with a friend and all but three of the houses that you visit are giving out candy. One house that you visit is giving out toothbrushes and two houses are giving out dollar bills. Task Given the input of the total number of houses that you visited, what is the percentage chance that one random item pulled from your bag is a dollar bill? Input Format An integer (>=3) representing the total number of houses that you visited. Output Format A percentage value rounded up to the nearest whole number. Sample Input 4 Sample Output 50 I tried this code but i am stuck so help is needed. houses = int(input()) s= 2 / houses * 100 print (round(s))