def average_colour(pixels):
    channels = len(pixels[0, 0])
    colours = [0] * channels
    for x in range(0, image.width):
        for y in range(0, image.height):
            for channel in range(0, channels):
                colours[channel] += pixels[x, y][channel]

    colours = list(map(lambda x: int((image.width * image.height) / x), colours))
    return colours
dataset/ETHPy150Open charlienewey/image-mosaic/mosaic/colour-mosaic.py/average_colour/swapped operands of `/`