Skip to content

Instantly share code, notes, and snippets.

@soplakanets
Created January 22, 2010 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soplakanets/283669 to your computer and use it in GitHub Desktop.
Save soplakanets/283669 to your computer and use it in GitHub Desktop.
def append(value, list = None):
list = list or []
list.append(value)
return list
print append(1)
print append(2)
def append(value, list = []):
list.append(value)
return list
print append(1)
print append(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment