def saver(x=None): if x is None: # no argument passed? x = [] # run code to make a new list x.append(1) # changes new list object print xsaver([2])saver() # doesn't grow heresaver()
Name (required)
email (will not be published) (required)
Website