Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flower = input()
- count = int(input())
- budget = int(input())
- price = 0
- final = 0
- if flower == "Roses":
- price = 5
- final = count * price
- if count > 80:
- final -= count * price * 0.1
- if 0 > (budget - final):
- print(f"Not enough money, you need {abs(budget - final):.2f} leva more.")
- if 0 < (budget - final):
- print(f"Hey, you have a great garden with {count} {flower} and {abs(budget - final):.2f} leva left.")
- if flower == "Dahlias":
- price = 3.8
- final = count * price
- if count > 90:
- final -= count * price * 0.15
- if 0 > (budget - final):
- print(f"Not enough money, you need {abs(budget - final):.2f} leva more.")
- if 0 < (budget - final):
- print(f"Hey, you have a great garden with {count} {flower} and {abs(budget - final):.2f} leva left.")
- if flower == "Tulips":
- price = 2.8
- final = count * price
- if count > 80:
- final -= count * price * 0.15
- if 0 > (budget - final):
- print(f"Not enough money, you need {abs(budget - final):.2f} leva more.")
- if 0 < (budget - final):
- print(f"Hey, you have a great garden with {count} {flower} and {abs(budget - final):.2f} leva left.")
- if flower == "Narcissus":
- price = 3
- final = count * price
- if count < 120:
- final += count * price * 0.15
- if 0 > (budget - final):
- print(f"Not enough money, you need {abs(budget - final):.2f} leva more.")
- if 0 < (budget - final):
- print(f"Hey, you have a great garden with {count} {flower} and {abs(budget - final):.2f} leva left.")
- if flower == "Gladiolus":
- price = 2.5
- final = count * price
- if count < 80:
- final += count * price * 0.2
- if 0 > (budget - final):
- print(f"Not enough money, you need {abs(budget - final):.2f} leva more.")
- if 0 < (budget - final):
- print(f"Hey, you have a great garden with {count} {flower} and {abs(budget - final):.2f} leva left.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement