Skip to content

Instantly share code, notes, and snippets.

@EricIO
Created August 15, 2014 23:00
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 EricIO/1abcd54292c9ea3b3146 to your computer and use it in GitHub Desktop.
Save EricIO/1abcd54292c9ea3b3146 to your computer and use it in GitHub Desktop.
def f(n, l=[]):
return l.append(n)
f(1,[12]) # returnerar [12,1]
f(1) # returnerar [1]
f(2) # returnerar [1,2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment