Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flowers = input()
- number = int(input())
- budget = int(input())
- costs = number
- if flowers == "Roses":
- costs *= 5
- if number > 80:
- costs *= 0.9
- elif flowers == "Dahlias":
- costs *= 3.80
- if number > 90:
- costs *= 0.85
- elif flowers == "Tulips":
- costs *= 2.80
- if number > 80:
- costs *= 0.85
- elif flowers == "Narcissus":
- costs *= 3
- if number < 120:
- costs *= 1.15
- else:
- costs *= 2.50
- if number < 80:
- costs *= 1.2
- if budget >= costs:
- print(f"Hey, you have a great garden with {number} {flowers} and {budget - costs:.2f} leva left.")
- else:
- print(f"Not enough money, you need {costs - budget:.2f} leva more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement