Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type_flowers = str(input())
- number_flowers = int(input())
- budget = int(input())
- whole_price = 0
- if type_flowers == 'Roses':
- if number_flowers > 80:
- whole_price = number_flowers * 5
- whole_price *= 0.9
- elif number_flowers <= 80:
- whole_price = number_flowers * 5
- if type_flowers == 'Dahlias':
- if number_flowers > 90:
- whole_price = number_flowers * 3.85
- whole_price *= 0.85
- elif number_flowers <= 90:
- whole_price = number_flowers * 3.85
- if type_flowers == 'Tulips':
- if number_flowers > 80:
- whole_price = number_flowers * 2.80
- whole_price *= 0.85
- elif number_flowers <= 80:
- whole_price = number_flowers * 2.80
- if type_flowers == 'Narcissus':
- if number_flowers >= 120:
- whole_price = number_flowers * 3
- elif number_flowers < 120:
- whole_price = number_flowers * 3
- whole_price *= 1.15
- if type_flowers == 'Gladiolus':
- if number_flowers >= 80:
- whole_price = number_flowers * 2.50
- elif number_flowers < 80:
- whole_price = number_flowers * 2.50
- whole_price *= 1.2
- difference = abs(whole_price - budget)
- if whole_price >= budget:
- print(f"Not enough money, you need {difference:.2f} leva more.")
- else:
- print(f"Not enough money, you need {difference:.2f} leva more.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement