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