my cart function had one default argument, an empty list.. worked fine until a second caller skipped it and got the first caller's item in their cart. python builds that default list once, at def time, so every caller who skips it shares it. fix: default to none, build it inside. #Python #Debugging
