Build an apply discount function

Tell us what’s happening:

Your code so far

def apply_discount(price, discount):
    
    if not isinstance(price, (int,float)):
        return('The price should be a number.')   
    elif not isinstance(discount, (int,float)):
        return('The discount should be a number.')
    elif price <= 0:
        return('The price should be greater than 0')
    elif discount < 0 or discount > 100:
        return('The discount should be between 0 and 100')
    else:
        return(price * discount / -100) + price

print(apply_discount(100, 12))

Everything works besides lines 3 - 6. I can’t figure out what I’m doing wrong.

This is the message I get:

When apply_discount is called with a price (first argument) that is not a number (int or float), it should return The price should be a number.

I figured it out. I had periods where periods werent needed. thanks for viewing my problem.