New House
Здравейте,
Може ли някой да покаже решение на задачата? Нещо не ми излиза и не мога да си хвана грешката...
Благодаря предварително!
flowers = input() peaces = int(input()) budget = float(input()) total = 0 if flowers == "Roses": if peaces > 80: total = (peaces * 5)*0.9 else: total = peaces * 5 if flowers == "Dahlias": if peaces > 90: total = (peaces * 3.8)*0.85 else: total = peaces * 3.8 if flowers == "Tulips": if peaces > 80: total = (peaces * 2.8)*0.85 else: total = peaces * 2.8 if flowers == "Narcissus": if peaces < 120: total = peaces * 3 + (peaces * 3)*0.15 else: total = peaces * 3 if flowers == "Gladiolus": if peaces < 80: total = peaces * 2.5 + (peaces * 2.5)*0.2 else: total = peaces * 2.5 if budget > total: print(f"Hey, you have a great garden with {peaces} {flowers} and {(budget - total):.2f} leva left.") elif budget < total: print(f"Not enough money, you need {abs(budget - total):.2f} leva more.")
Now on my blog there is this heading that says new house but the data here seems to be some statistics. I can not say much about it becuase i didn't know what this was and how people can learn this from us as well. You can maybe try that for us and we will look forward to that for everyone else as well.