Skip to content

Free preview · 5 questions

Try Python for Analysts

No sign-up. No timer. Five questions sampled at random from the full 18-question test. See how you stack up before requesting access for the full assessment and a verifiable certificate.

Question 1 of 5

0 of 5 answered

Default-argument trap: def f(x, items=[]): items.append(x); return items. Calling f(1) then f(2) gives: