‹ Tests

Python Practice Test 1

1 / 10

Functions & Argumentseasy

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?

Select one answer

0 / 10 answered