Python Practice Test 1
1 / 10
A helper is defined as def f(x, acc=[]): acc.append(x); return acc and then called with print(f(1), f(2)) in a fresh interpreter. What does the print call output?
1 / 10
A helper is defined as def f(x, acc=[]): acc.append(x); return acc and then called with print(f(1), f(2)) in a fresh interpreter. What does the print call output?