def is_school_day(day): Checks if the given day is a school day (Monday to Friday). return day.weekday() < 5 def announce_school_day(day): Prints a message stating it's a school day and how many days until the weekend. days_till_weekend = 5 - day.weekday() print(f"It's a school day! {days_till_weekend} days left until the weekend.") def announce_weekend(day) Prints a message stating it's the weekend and how many hours left in the day. print(f"It's the weekend! {24 - day.hour} hours left in the weekend.") def main(): today = datetime.datetime.today() if is_school_day(today): announce_school_day(today) else: announce_weekend(today)