Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budget = int(input())
- season = input()
- fisherman = int(input())
- boat_price = 0
- if season == "Spring":
- if fisherman <= 6:
- boat_price = 3000 * 0.1
- if fisherman % 2 == 0:
- boat_price *= 0.5
- elif 7 < fisherman < 11:
- boat_price = 3000 * 0.15
- if fisherman % 2 == 0:
- boat_price *= 0.5
- else:
- boat_price = 3000 * 0.25
- if fisherman % 2 == 0:
- boat_price *= 0.5
- if season == "Summer" and "Autumn":
- if fisherman <= 6:
- boat_price = 3000 * 0.1
- if season == "Summer" and fisherman % 2 == 0:
- boat_price *= 0.5
- elif 7 < fisherman < 11:
- boat_price = 3000 * 0.15
- if season == "Summer" and fisherman % 2 == 0:
- boat_price *= 0.5
- else:
- boat_price = 3000 * 0.25
- if season == "Summer" and fisherman % 2 == 0:
- boat_price *= 0.5
- if season == "Winter":
- if fisherman <= 6:
- boat_price = 3000 * 0.1
- if fisherman % 2 == 0:
- boat_price *= 0.5
- elif 7 < fisherman < 11:
- boat_price = 3000 * 0.15
- if fisherman % 2 == 0:
- boat_price *= 0.5
- else:
- boat_price = 3000 * 0.25
- if fisherman % 2 == 0:
- boat_price *= 0.5
- if budget > boat_price:
- print(f"Yes! You have {budget - boat_price:.2f} leva left.")
- else:
- print(f"Not enough money! You need {boat_price - budget:.2f} leva.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement