Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- profit = float(input())
- order_price = 0
- income = 0
- while profit > income:
- drink = input()
- if drink == "Party!":
- break
- else:
- quantity = int(input())
- order_price = len(drink) * quantity
- if order_price % 2 != 0:
- order_price *= 0.75
- income += order_price
- if income >= profit:
- print("Target acquired.")
- print(f"Club income - {income:.2f} leva.")
- else:
- print(f"We need {(profit - income):.2f} leva more.")
- print(f"Club income - {income:.2f} leva.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement