Advertisement
dchakarov81

Untitled

Jan 31st, 2020
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. budget = float(input())
  2. season = input()
  3.  
  4. destination = ""
  5. type = ""
  6. price = 0
  7.  
  8. if budget <= 100:
  9. destination = "Bulgaria"
  10. if season == "summer":
  11. price = budget * 0.3
  12. type = "Camp"
  13. else:
  14. price = budget * 0.7
  15. type = "Hotel"
  16.  
  17. elif budget <= 1000:
  18. destination = 'Balkans'
  19. if season == "summer":
  20. price = budget * 0.4
  21. type = "Camp"
  22. else:
  23. price = budget * 0.8
  24. type = "Hotel"
  25. else:
  26. destination = "Europe"
  27. price = budget * 0.9
  28. type = "Hotel"
  29. print(f"Somewhere in {destination}")
  30. print(f"{type} - {price:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement