unit_price = 100
quantity = int(input("Enter the quantity of the item: "))
total_price = unit_price * quantity
if total_price > 1000:
total_price = total_price * 0.9
print("The total price is: ", total_price)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
unit_price = 100
quantity = int(input("Enter the quantity of the item: "))
total_price = unit_price * quantity
if total_price > 1000:
total_price = total_price * 0.9
print("The total price is: ", total_price)