Build a Discount Calculator - Build a Discount Calculator

Tell us what’s happening:

I was able to get the test for steps 1 and 2 to go through successfully. However from there the tests are failing. Any guidance would be appreciated and I have tried everything that I know how to do. Thank you in advance.

Your code so far

def apply_discount(price, discount):
    if not isinstance(price, number):
        return 'The price should be a number'
    if not isinstance(discount, number):
        return 'The discount should be a number'
    if price <=0:
        return 'The price should be greater than 0'
    if discount <1:
        return 'The discount should be between 0 and 100'

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Safari/605.1.15

Challenge Information:

Build a Discount Calculator - Build a Discount Calculator

9 posts were merged into an existing topic: Build a Discount Calculator - Build a Discount Calculator