def get_average(pixels):
    """
    Given a list of pixels, finds the average red, blue, and green values

    Input:
        pixels (List[Pixel]): list of pixels to be averaged
    Returns:
        rgb (List[int]): list of average red, green, blue values across pixels respectively

    Assumes you are returning in the order: [red, green, blue]

    """
    avg_red = 0
    avg_green = 0
    avg_blue = 0
    # 在pixels list上一個個找過去，獲得它的rgb值
    for i in range(len(pixels)):
        avg_red += pixels[i].red
        avg_green += pixels[i].green
        avg_blue += pixels[i].blue
    # 獲得平均數
    avg_red /= len(pixels)
    avg_green /= len(pixels)
    avg_blue /= len(pixels)
    rgb_list = [int(avg_red), int(avg_green), int(avg_blue)]
    return rgb_list