Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- month = input()
- hours = int(input())
- people = int(input())
- time = input()
- total = 0
- total2 = 0
- if month == "march" or month == "april" or month == "may":
- if time == "day":
- total = hours * 10.5
- elif time == "night":
- total = hours * 8.4
- elif month == "june" or month == "july" or month == "august":
- if time == "day":
- total = hours * 12.6
- elif time == "night":
- total = hours * 10.2
- if people >= 4:
- total *= 0.9
- if hours >= 5:
- total *= 0.5
- total2 = total * people
- print(f"Price per person for one hour: {(total / hours):.2f}")
- print(f"Total cost of the visit: {total2:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement