Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month = input()
- number_of_hours = int(input())
- number_of_people = int(input())
- day_type = input()
- current_price = 0
- if month in ["march", "april", "may"]:
- if day_type == 'day':
- current_price = 10.50
- else:
- current_price = 8.40
- elif month in ["june", "july", "august"]:
- if day_type == 'day':
- current_price = 12.60
- else:
- current_price = 10.20
- if number_of_people >= 4:
- current_price = current_price - (current_price * 0.10)
- if number_of_hours >= 5:
- current_price = current_price - (current_price * 0.50)
- final_price = (current_price * number_of_people) * number_of_hours
- print(f'Price per person for one hour: {current_price:.2f}')
- print(f'Total cost of the visit: {final_price:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement