Teo_Yanchev

energy_booster_28-29-2020_exam

Jul 17th, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. fruit = input()
  2. sets = input()
  3. count_sets = int(input())
  4.  
  5. price = 0
  6. if sets == "small":
  7. if fruit == "Watermelon":
  8. total = 2 * 56
  9. price = count_sets * total
  10. elif fruit == "Mango":
  11. total = 2 * 36.66
  12. price = count_sets * total
  13. elif fruit == "Pineapple":
  14. total = 2 * 42.10
  15. price = count_sets * total
  16. else:
  17. total = 2 * 20
  18. price = count_sets * total
  19. else:
  20. if fruit == "Watermelon":
  21. total = 5 * 28.70
  22. price = count_sets * total
  23. elif fruit == "Mango":
  24. total = 5 * 19.60
  25. price = count_sets * total
  26. elif fruit == "Pineapple":
  27. total = 5 * 24.80
  28. price = count_sets * total
  29. else:
  30. total = 5 * 15.20
  31. price = count_sets * total
  32.  
  33. if 400 <= price <= 1000:
  34. price *= 0.85
  35. elif 1000 < price:
  36. price *= 0.50
  37. print(f"{price:.2f} lv.")
Add Comment
Please, Sign In to add comment