that one work
price = 250
if price < 0:
print(“Invalid price. No discount will be applied.”)
elif price < 100:
discounted = (5/100) * price
price = price - discounted
print("There will be a 5% discount and the new price is ", price)
elif price >= 100 and price < 200:
discounted = (10/100) * price
price = price - discounted
print("There will be a 10% discount and the new price is ", price)
elif price >= 200 and price < 300:
discounted = (20/100) * price
price = price - discounted
print("There will be a 20% discount and the new price is ", price)
else:
discounted = (30/100) * price
price = price - discounted
print("There will be a 30% discount and the new price is ", price)