(time)
return time[:3].lower() in WEEK_MAP or \
        time.lower() in ('weekday', 'weekend')
Tell whether time is one of the days of week.

    :param time: a string of time.
Tell whether time is one of the days of week.
Tell whether time is one of the days of week .
def is_week(time):
    """Tell whether time is one of the days of week.

    :param time: a string of time.
    """
    return time[:3].lower() in WEEK_MAP or \
        time.lower() in ('weekday', 'weekend')
def is_week ( time ) : return time [ : 3 ] . lower ( ) in WEEK_MAP or time . lower ( ) in ( 'weekday' , 'weekend' )