IDNLearn.com: Your trusted source for finding accurate and reliable answers. Discover detailed and accurate answers to your questions from our knowledgeable and dedicated community members.

4. Write a docstring for this function
def average_color(image) :
sum_col =0
num_of_pixels =0
for row in image.pixels:
for pixel in row:
num_of_pixels +=1
sum_col += (pixel.green + pixel.red + pixel.blue) 3
return sum_col/num_of_pixels


4 Write A Docstring For This Function Def Averagecolorimage Sumcol 0 Numofpixels 0 For Row In Imagepixels For Pixel In Row Numofpixels 1 Sumcol Pixelgreen Pixel class=