Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- team = input()
- souvenir = input()
- number_souvenirs = int(input())
- price = 0
- if team == "Argentina":
- if souvenir == "flags":
- price = 3.25
- elif souvenir == "caps":
- price = 7.20
- elif souvenir == "posters":
- price = 5.10
- elif souvenir == "stickers":
- price = 1.25
- print(f'Pepi bought {number_souvenirs} {souvenir} of {team} for {price * number_souvenirs:.2f} lv.')
- elif team == "Brazil":
- if souvenir == "flags":
- price = 4.20
- elif souvenir == "caps":
- price = 8.50
- elif souvenir == "posters":
- price = 5.35
- elif souvenir == "stickers":
- price = 1.20
- print(f'Pepi bought {number_souvenirs} {souvenir} of {team} for {price * number_souvenirs:.2f} lv.')
- elif team == "Croatia":
- if souvenir == "flags":
- price = 2.75
- elif souvenir == "caps":
- price = 6.90
- elif souvenir == "posters":
- price = 4.95
- elif souvenir == "stickers":
- price = 1.10
- print(f'Pepi bought {number_souvenirs} {souvenir} of {team} for {price * number_souvenirs:.2f} lv.')
- elif team == "Denmark":
- if souvenir == "flags":
- price = 3.10
- elif souvenir == "caps":
- price = 6.50
- elif souvenir == "posters":
- price = 4.80
- elif souvenir == "stickers":
- price = 0.90
- print(f'Pepi bought {number_souvenirs} {souvenir} of {team} for {price * number_souvenirs:.2f} lv.')
- elif team != "Argentina" or "Brazil" or "Croatia" or "Denmark":
- print("Invalid country!")
- else:
- print("Invalid stock!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement