Asked about Loops, conditions and functions

What is wrong with def f(items=[])?

An answer that works

The default list is created once when the function is defined, not on each call, so every call shares the same list. Values accumulate across calls. Use None as the default and create the list inside the function.

Reading an answer is not being able to give one. The section that teaches this is Loops, conditions and functions, 3 hours of Python.

Learn this properly