def is_lunchtime(hour, is_am):
    """
    Returns whether the given time, as represented by the hour
    and is_am, is lunchtime.
    """ 
    return (hour == 11 and is_am) or (hour == 12 and not is_am)