Question: What does the following function do? By reading the program without running it, do you think that the result of test8 will be lighter or

What does the following function do? By reading the program without running it, do you think that the result of test8 will be lighter or darker than the result of test7?

def test8 (picture): for p in getPixels(picture): getRed (p) /3 getGreen (p) /3 blue = getBlue (p) /3 red green = %3D color makeColor(red,green, blue) setColor(p,color)

def test8 (picture): for p in getPixels(picture): getRed (p) /3 getGreen (p) /3 blue = getBlue (p) /3 red green = %3D color makeColor(red,green, blue) setColor(p,color)

Step by Step Solution

3.39 Rating (171 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

test8 sets all color values in ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction to Computing and Programming in Pytho Questions!