Python · Functions: Parameters & Scope
What does this print? ``` def f(a=[1, 2, 3]): a += [4, 5] print(a) f() f() ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
Free to start — download the app or use it in your browser.