6.
total_cost = 0
answer = 1
i = 0
while answer:
i += 1
price = float(input("Введите цену товараn"))
if price > 1500:
total_cost += price - price * 0. 08
else:
total_cost += price
if price < 0:
answer = 0
print("Общая стоимость:", total_cost)
7.
first = 1