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