+ 1

Why do i get 2/5 in Halloween Candy challenge .. Here's my Code

houses = int(input()) try: if houses >=3: dollar_bill_houses = 2 percentage = round((dollar_bill_houses / houses )*100) print (percentage) else: print ('Input less than 3') except ZeroDivisionError: print('Cant divide by zero')

2nd Aug 2020, 9:56 AM
Eleojo Emmanuel Adegbe
Eleojo Emmanuel Adegbe - avatar
4 Réponses