Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sea_excursions = int(input())
- mountain_excursions = int(input())
- profit = 0
- command = input()
- while command != "Stop":
- if command == "sea":
- if sea_excursions > 0:
- profit += 680
- sea_excursions -= 1
- else:
- command = input()
- continue
- else:
- if mountain_excursions > 0:
- profit += 499
- mountain_excursions -= 1
- else:
- command = input()
- continue
- if sea_excursions > 0 or mountain_excursions > 0:
- command = input()
- else:
- print("Good job! Everything is sold")
- break
- print(f"Profit: {profit} leva.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement