Advertisement
hristo256

Football Souvenirs

Jun 25th, 2022
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. team = input()
  2. souvenir = input()
  3. number_souvenirs = int(input())
  4. price = 0
  5.  
  6.  
  7. if team == "Argentina":
  8. if souvenir == "flags":
  9. price = 3.25
  10. elif souvenir == "caps":
  11. price = 7.20
  12. elif souvenir == "posters":
  13. price = 5.10
  14. elif souvenir == "stickers":
  15. price = 1.25
  16. print(f'Pepi bought {number_souvenirs} {souvenir} of {team} for {price * number_souvenirs:.2f} lv.')
  17. elif team == "Brazil":
  18. if souvenir == "flags":
  19. price = 4.20
  20. elif souvenir == "caps":
  21. price = 8.50
  22. elif souvenir == "posters":
  23. price = 5.35
  24. elif souvenir == "stickers":
  25. price = 1.20
  26. print(f'Pepi bought {number_souvenirs} {souvenir} of {team} for {price * number_souvenirs:.2f} lv.')
  27. elif team == "Croatia":
  28. if souvenir == "flags":
  29. price = 2.75
  30. elif souvenir == "caps":
  31. price = 6.90
  32. elif souvenir == "posters":
  33. price = 4.95
  34. elif souvenir == "stickers":
  35. price = 1.10
  36. print(f'Pepi bought {number_souvenirs} {souvenir} of {team} for {price * number_souvenirs:.2f} lv.')
  37. elif team == "Denmark":
  38. if souvenir == "flags":
  39. price = 3.10
  40. elif souvenir == "caps":
  41. price = 6.50
  42. elif souvenir == "posters":
  43. price = 4.80
  44. elif souvenir == "stickers":
  45. price = 0.90
  46. print(f'Pepi bought {number_souvenirs} {souvenir} of {team} for {price * number_souvenirs:.2f} lv.')
  47. elif team != "Argentina" or "Brazil" or "Croatia" or "Denmark":
  48. print("Invalid country!")
  49. else:
  50.  
  51. print("Invalid stock!")
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement