def get_max_week_number(course):
    """
    Get the max week number from a course object
    :param course: course object
    :return: last week number included in the course
    """
    weeks = course.get("Weeks")
    last_period = weeks.split(', ')[-1]
    if '-' not in last_period:
        return int(last_period)
    else:
        return int(last_period.split('-')[-1])