I'm a beginner in python... Plz help me solving simple Halloween candy code coach problem... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I'm a beginner in python... Plz help me solving simple Halloween candy code coach problem...

houses = int(input()) #your code goes here q=100/houses if houses==3: percentage = q*2 ppdollarbill=round(percentage) print(ppdollarbill) if houses>3: percentage = q ppdollarbill=round(percentage)*2 print(ppdollarbill) #this is the code I made... but this code can't pass all the test cases... plz help me finding solution...

26th Feb 2020, 5:18 AM
Mathan MG
Mathan MG - avatar
1 Answer
+ 1
Just use search bar here in the QA section. Many had similar problems.
26th Feb 2020, 6:13 AM
Mihai Apostol
Mihai Apostol - avatar