Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

homework 8 recovery double input

a
andrealoria (1120 points)
3 6 9
in HW8 by (1.1k points)
Hi, i dont understand why in HW8 recovery we have a double input for the ex function.

The first input is an image ,what is the "output_file" in input?

the function will have to return a number of plots(int value) and an image (list of list or list of tuple?)

please help me =)

Thanks for the answers!

1 Answer

e
enricomaria.follega (1460 points)
9 18 29
by (1.5k points)
the output_file is the path/name that the final image will be saved to, after that all your programs in your algorithm have been run.

the image is a list of tuples not a list of lists. if you use a list of lists, the module image.py will generate an error.
James_F (6070 points)
10 14 47
by (6.1k points)
it's indeed a list tuple's lists:
 e.g [[(color),(color),(color)][(color),(color),(color)]]