price=int(input("enter the price of the item: \n"))
quantity=int(input("enter the quantity of the item: \n"))
total=price*quantity
if (total>1000):
    discount=total*0.1
    final_price=total-discount
    print("the original price is:",total)
    print("the discounted price is: ",final_price)
else:
    print("total price:",total)

Embed on website

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