If you're seeing this message, it means we're having trouble loading external resources on our website.
If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.
To log in and use all the features of Khan Academy, please enable JavaScript in your browser.
def subtract_discount(price, discount): return price - discount def get_final_price(price, discount, surcharge): discounted_price = subtract_discount(price, discount) return discounted_price + surcharge
final_price = get_final_price(50, 10, 2)
final_price