More concretely, one of the classic Python bugs is to use `[]` as a default argument and then mutate what "is obviously" a local variable.
``` def myfunc(x=None): x = x if x is not None else [] ... ```
x = x or []
Your method is best when you might get falsy values but if that’s not an issue the `or` method is handy. def listify(item, li=[]):
li.append(item)
return li
listify(1) # [1]
listify(2) # [1, 2]