+ 1

Someone please help me find out what's wrong with this code:

If all but three houses I visited are giving out candy and two out of the three are giving out dollar bills what is the percentage chance that one Out of every item in the bag will be a dollar? https://code.sololearn.com/c1sAvz3H20UG/?ref=app

26th Mar 2020, 7:31 PM
John Ifegwu
John Ifegwu - avatar
3 Answers
+ 1
Pls Read description again carefully... You get idea where you missing surely..... Take 2.0 instead of 2 //may be no difference in python but try to check if not successful with 2 Use ceil function not round and then print equalent Integer....( you need to round up means ceil the result)
26th Mar 2020, 7:35 PM
Jayakrishna 🇼🇳
+ 1
It worked buddy. Thanks.
26th Mar 2020, 7:43 PM
John Ifegwu
John Ifegwu - avatar
0
John Ifegwu You're welcome..
26th Mar 2020, 7:44 PM
Jayakrishna 🇼🇳