3 lines
100 B
Python

def discount_price(price: float, percent: float) -> float:
return price - price * percent / 100