Question 5
What will be the output of the following Python code snippet on the terminal?
def modify(n): def modifier(n): ser = [0,1] for i in range(n-2): new = ser[i]+ser[i+1] ser.append(new) print(ser) return modifier
@modifydef list_num(n): nums = [] for i in range(n): nums.append(i+1) print(nums)
list_num(10)