Almost rightLesson 091 min
This function remembers things it should have forgotten
A function with an empty list as a default value remembers items between calls. Python builds that list once, when the function is defined, so every call that leaves the argument out shares it. One customer's apple then turns up in the next customer's basket. The fix is to default to nothing and create a fresh list inside the function.
Remember
Never use a list or a dictionary as a default value.
