Skip to content

Instantly share code, notes, and snippets.

@nicolasff
Created November 19, 2008 11:01
Show Gist options
  • Save nicolasff/26478 to your computer and use it in GitHub Desktop.
Save nicolasff/26478 to your computer and use it in GitHub Desktop.
def append(e, l = []):
l.append(e)
return l
tmp0 = append("what")
tmp1 = append("the")
tmp2 = append("fuck")
print tmp2 # → ['what', 'the', 'fuck']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment