Решение на Алкохолна борса
Също и в : https://pastebin.com/PRDnLPxC
priceWhiskey = float(input()) beerQuantity = float(input()) wineQuantity = float(input()) brandyQuantity = float(input()) whiskeyQuantity = float(input()) priceBrandy = (priceWhiskey / 2) priceWine = priceBrandy - (0.4 * priceBrandy) priceBeer = priceBrandy - (0.8 * priceBrandy) sumWhiskey = (priceWhiskey * whiskeyQuantity) sumBrandy = (priceBrandy * brandyQuantity) sumWine = (priceWine * wineQuantity) sumBeer = (priceBeer * beerQuantity) print('%.2f' % (sumWhiskey+sumBrandy+sumWine+sumBeer))