item_price = 150.00          
quantity = 3                
discount_rate_percent = 15   
subtotal = item_price * quantity
discount_amount = (subtotal * discount_rate_percent) / 100
final_total = subtotal - discount_amount
print(f"Subtotal: E{subtotal:.2f}")
print(f"Discount ({discount_rate_percent}%): -E{discount_amount:.2f}")
print(f"Final Total: E{final_total:.2f}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: