Build an Apply Discount Function - Build an Apply Discount Function

Tell us what’s happening:

I find that I am passing step 3, but when I apply the same concept to try to pass step 4, it doesn’t allow me to according to my code. It also doesn’t work if I change the elif to if. Can someone explain why and what I need to do to pass step 4?

Your code so far

def apply_discount(price, discount):
    
    if price != int or float:
        return("The price should be a number")
    elif discount != int or float:
        return("The discount should be a number")
    
    

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36

Challenge Information:

Build an Apply Discount Function - Build an Apply Discount Function

i believe this is an invalid use of the or conditional to start with.
secondly try using the isinstance(my_variable, (int, float))
thirdly i would not use != here. there is an explicit reason wby but i cannot remember it at this moment. try using

if not My_Conditional:
do my_action