def get_best_pixel(dis_lst, pixels):
    """
    Given a list of pixels, returns the pixel with the smallest
    distance from the average red, green, and blue values across all pixels.

    Input:
        pixels (List[Pixel]): list of pixels to be averaged and compared
    Returns:
        best (Pixel): pixel closest to RGB averages

    """
    shortest_dis = dis_lst[0]                   # Assign 'dis_lst[0]' to 'shortest_dis' at the very beginning.
    best = ''                                   # Set 'best' as an empty string at the very beginning.
    for i in range(len(dis_lst)):               # Get data from 'dis_lst' and compare their value.
        if dis_lst[i] <= shortest_dis:          # Find out the smallest value(shortest distance)
            best = pixels[i]                    # Assign the same index of data in 'pixels' list to 'best'.
    return best                                 # Return 'best'. (pixel which is in the shortest distance)