0
Halloween Candy bug
houses=int(input()) def near(n) : if n-int(n) > 0.5 : return int(n+1) return int(n) print(near(2/houses * 100)) This is my solution to the Halloween Candy problem but it doesnt work : the first and the secoond attempts are verified but the 3rd,4th and 5th are not. Thanks for the help.
3 Answers