03 (6): Consider the code below and indicate what fun (N) calculates. Explain briefly the code logic, and especially wha
Posted: Fri May 20, 2022 12:02 pm
03 (6): Consider the code below and indicate what fun (N) calculates. Explain briefly the code logic, and especially what each step of reduce does exactly. Trace the example of fun (6) to illustrate your answer in detail. (1 mark) fun = lambda n: reduce(lambda x,n: (x[1], x[0]+x[1]). range(n), (0,1)) [@]