4 ms·
Do you mean ``` def add_item_to_list(item, list_to_add=[]): list_to_add.append(item) return list_to_add a = add_item_to_list(1) a.append(3) b =
by quibono 4y ago
Do you mean
```
def add_item_to_list(item, list_to_add=[]):
list_to_add.append(item)
return list_to_add
a = add_item_to_list(1)
a.append(3)
b = add_item_to_list(2)
```
- _huayra_ 4y agooh lol yes you're right. I meant to return the list. I should not try to HN comment while running out the door to catch my bus...