def get_semester_start_end(year, season):
    """
    Returns a guess of the start and end dates for given semester.
    """
    if season == Semester.SPRING:
        start_month, start_day = 1, 20
        end_month, end_day = 5, 17
    elif season == Semester.SUMMER:
        start_month, start_day = 5, 25
        end_month, end_day = 8, 16
    else:
        start_month, start_day = 8, 24
        end_month, end_day = 12, 20

    return date(year, start_month, start_day), date(year, end_month, end_day)
def get_semester_start_end ( year , season ) : if season == Semester . SPRING : start_month , start_day = 1 , 20 end_month , end_day = 5 , 17 elif season == Semester . SUMMER : start_month , start_day = 5 , 25 end_month , end_day = 8 , 16 else : start_month , start_day = 8 , 24 end_month , end_day = 12 , 20 return date ( year , start_month , start_day ) , date ( year , end_month , end_day )
Returns a guess of the start and end dates for given semester.