Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- harvest = int(input())
- grapes_kv = float(input())
- wine_litres = int(input())
- working_people = int(input())
- production = harvest * grapes_kv
- wine_production = (production / 2.5) * 0.4
- if wine_litres > wine_production:
- print(f"It will be a tough winter! More {math.floor(wine_litres - wine_production)} liters wine needed.")
- else:
- print(f"Good harvest this year! Total wine: {math.ceil(wine_production)} liters.")
- print(f"{math.floor(wine_production - wine_litres)} liters left -> {math.ceil((wine_production - wine_litres) / working_people)} liters per person. ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement