by Herald_MJ · 9y ago · 0 comments
https://www.pastery.net/mbeghh/
(it'll print 3)
def do_stuff(mylist=[]):
mylist.append("thing")
Which will lead to the list containing N items after N invocations (i.e. the second function call won't start with an empty list).