Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start_hours = int(input())
- check_hours = int(input())
- check_minutes = int(input())
- day_of_week = input()
- bonus_points = 0
- if check_hours < start_hours and check_hours <= (start_hours - 1):
- bonus_points = 1.5
- elif check_hours == start_hours and check_minutes <= 30:
- bonus_points = 1
- elif (check_hours == start_hours and check_minutes > 30) or check_hours <= (start_hours + 4):
- bonus_points = 0.5
- if day_of_week == "Monday" or day_of_week == "Wednesday" or day_of_week == "Friday":
- bonus_points += 0.6
- elif day_of_week == "Tuesday" or day_of_week == "Thursday" or day_of_week == "Saturday":
- bonus_points += 0.8
- elif day_of_week == "Sunday":
- bonus_points += 2
- print(f'{bonus_points:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement