Относно задача 05.Квартално магазинче от тема: По-сложни проверки
product = input().lower()
city = input().lower()
quantity = float(input())
price = 0
if city == "sofia":
if product == "coffee":
price = quantity * 0.50
elif product == "water":
price = quantity * 0.80
elif product == "beer":
price = quantity * 1.20
elif product == "sweets":
price = quantity * 1.45
elif product == "peanuts":
price = quantity * 1.60
elif city == "plovdiv":
if product == "coffee":
price = quantity * 0.40
elif product == "water":
price = quantity * 0.70
elif product == "beer":
price = quantity * 1.15
elif product == "sweets":
price = quantity * 1.30
elif product == "peanuts":
price = quantity * 1.50
elif city == "varna":
if product == "coffee":
price = quantity * 0.45
elif product == "water":
price = quantity * 0.70
elif product == "beer":
price = quantity * 1.10
elif product == "sweets":
price = quantity * 1.35
elif product == "peanuts":
price = quantity * 1.55
print(price)
Резултат = 0 ????
Моля за съдействие.
Извинете. Грешката е у мен. Хубав ден.