vat = 0.1 lux = 0.3 final_price = lambda price: round(price*(1+(vat+lux if price >= 1000 else vat)), 2)
def final_price(price):vat = 0.1lux = 0.3return round(price*(1+vat+lux),2) if price >= 1000 else round(price*(1+vat),2)- vat = 0.1
- lux = 0.3
- final_price = lambda price: round(price*(1+(vat+lux if price >= 1000 else vat)), 2)