255 views 1 year ago.
Halloween candy sololearn python. And i have a problem, the goal is to calculate the chance. Mine works but it feels janky: Introduction to c# introduction to sql.
The problem states that all the houses you and your friends visit gives candy except 3 houses, among these 3 houses,. Learn to code for free! You should use math.ceil () and then convert it to int.
What's better than to have fun with coding by writing a. Web has anyone solved the halloween candy in python 3? Learn to code for free!
Web sololearn is the world's largest community of people learning to code. Is it possible to solve this problem without ceil? You need to round up.
26th jul 2023, 4:42 pm. Sorry the correct method name is math.ceiling. Houses = int(input()) #your code goes here dollar = 2/houses*100 print(round(dollar)) it works only for the first two.
Cannot retrieve contributors at this time. Why does this only work on the first two runs? I am quite a beginner, and i am doing the halloween candy challenge.