Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- price_of_the_party = float(input())
- quantity_love_messages = int(input())
- quantity_wax_rose = int(input())
- quantity_key_holder = int(input())
- quantity_cartoon = int(input())
- quantity_surprise = int(input())
- total_quantitry = 0
- final_sum = 0
- price_love_message = quantity_love_messages * 0.60
- price_wax_rose = quantity_wax_rose * 7.20
- price_key_holder = quantity_key_holder * 3.60
- price_cartoon = quantity_cartoon * 18.20
- price_surprise = quantity_surprise * 22
- total_quantitry = quantity_love_messages + quantity_wax_rose + quantity_key_holder + quantity_cartoon + quantity_surprise
- final_sum = price_love_message + price_wax_rose + price_key_holder + price_cartoon + price_surprise
- if total_quantitry >= 25:
- final_sum = final_sum * 0.65
- final_sum = final_sum *0.90
- if final_sum >= price_of_the_party:
- print(f"Yes! {(final_sum-price_of_the_party):.2f} lv left.")
- else:
- print(f"Not enough money! {(price_of_the_party-final_sum):.2f} lv needed.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement