gen4i4

Untitled

Mar 14th, 2022
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. import math
  2.  
  3. product = input()
  4. city = input()
  5. count = float(input())
  6. price = 0
  7. if city == 'Sofia':
  8. if product == 'coffe':
  9. price = 0.50
  10. elif product == 'water':
  11. price = 0.80
  12. elif product == 'beer':
  13. price = 1.20
  14. elif product == 'sweets':
  15. price = 1.45
  16. elif product == 'peanuts':
  17. price = 1.60
  18. elif city == 'Plovdiv':
  19. if product == 'coffe':
  20. price = 0.40
  21. elif product == 'water':
  22. price = 0.70
  23. elif product == 'beer':
  24. price = 1.15
  25. elif product == 'sweets':
  26. price = 1.30
  27. elif product == 'peanuts':
  28. price = 1.50
  29. elif city == 'Varna':
  30. if product == 'coffe':
  31. price = 0.45
  32. elif product == 'water':
  33. price = 0.70
  34. elif product == 'beer':
  35. price = 1.10
  36. elif product == 'sweets':
  37. price = 1.35
  38. elif product == 'peanuts':
  39. price = 1.55
  40. final_price = count * price
  41. print(final_price)
  42.  
Advertisement
Add Comment
Please, Sign In to add comment