Tell us what’s happening:
it passed the test 3 but test 4 isn’t passing. i don’t understand what I’m doing wrong
Your code so far
def apply_discount(price, discount):
if price != int or float:
return "The price should be a number"
if 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