def apply_discount (price,discount): if isinstance(price,int) or isinstance(price,float): if isinstance(discount,int) or isinstance(discount,float): else: print(The discount should be a number) else: print("The price should be a number")
Error:
def apply_discount (price,discount):
if isinstance(price,int) or isinstance(price,float):
if isinstance(discount,int) or isinstance(discount,float):
else:
print(The discount should be a number)
else:
print("The price should be a number")