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

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

def test9 (picture): for p in getPixels(picture): getRed (p) * 2 getGreen (p) getBlue (p) * 2 makeColor(red, green, blue) red green 2 blue color setColor(p,color)

def test9 (picture): for p in getPixels(picture): getRed (p) * 2 getGreen (p) getBlue (p) * 2 makeColor(red, green, blue) red green 2 blue color setColor(p,color)

Step by Step Solution

3.38 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

test9 doubles the current co... 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!