The bookshop takes percent_off% off a book that costs price. Write sale_price(price, percent_off) to return the new price, rounded to 1 decimal place. A percent_off of 0 means the full price.
sale_price(80, 25)→60.0sale_price(19.9, 10)→17.9def sale_price(price, percent_off):
# your code here: work out the money off
off = 0
return round(price - off, 1)
Run tries the examples. When they look right, Submit.