+ 3

Please help me out with this challenge

https://www.sololearn.com/coach/4?ref=app I couldn't understand this challenge. Can someone please rephrase the challenge in short so that I get it? Thanks!

16th Sep 2020, 5:36 PM
Rahul Hemdev
Rahul Hemdev - avatar
4 Answers
+ 5
Number of houses that will be visited will be integer user input.Two from this houses will gives us dollars.so declare a variable that store this number divided by visited houses numbers then multiply it by 100 to get a percentage value.You have to import math module and learn about ceil method because the final output chould be ceiled.
16th Sep 2020, 6:35 PM
HBhZ_C
HBhZ_C - avatar
+ 5
Using round will include decimals values but ceil or floor will only return integer values and is that what they wanted in the code coach. Rahul Hemdev
17th Sep 2020, 10:54 AM
HBhZ_C
HBhZ_C - avatar
+ 3
HBhZ_C I believe round() will be better to round the percentage off
17th Sep 2020, 2:46 AM
Rahul Hemdev
Rahul Hemdev - avatar
+ 3
HBhZ_C Yeah... You're right. Thanks a bunch!!!
17th Sep 2020, 12:07 PM
Rahul Hemdev
Rahul Hemdev - avatar