Question 14
What will be the output of the following Python code snippet?
def modify(func): def wrapper(n): mylist = [] for i in range(1, n + 1): if n%i == 0: mylist.append(i) return mylist return wrapper
@modifydef myFunc(n): mylist = [] for i in range(1, n + 1): if i%2 == 0: mylist.append(i) return mylist
print(myFunc(14))