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]

    """
    red_total = 0                          # set variable for calculate total value for pixel in red
    green_total = 0                        # set variable for calculate total value for pixel in green
    blue_total = 0                         # set variable for calculate total value for pixel in blue
    rgb = []                               # set a list for storage the average value
    for ele in pixels:                     # for each element in pixel
        red_total += ele.red               # calculate total value for pixel in red
        green_total += ele.green           # calculate total value for pixel in green
        blue_total += ele.blue             # calculate total value for pixel in blue
    red = red_total / len(pixels)          # calculate average for red
    green = green_total / len(pixels)      # calculate average for green
    blue = blue_total / len(pixels)        # calculate average for blue
    rgb.append(int(red))                   # add average value of red in list
    rgb.append(int(green))                 # add average value of green in list
    rgb.append(int(blue))                  # add average value of blue in list
    return rgb                             # return the list