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