Skip to content

Instantly share code, notes, and snippets.

@diogobaltazar
Last active June 20, 2019 22:48
Show Gist options
  • Save diogobaltazar/95fcd86190391e6bede074e2c12bf12f to your computer and use it in GitHub Desktop.
Save diogobaltazar/95fcd86190391e6bede074e2c12bf12f to your computer and use it in GitHub Desktop.
Args and Kwargs
>>> def f(fst, *rest): # usually *args
... for this in rest:
... print(this)
...
>>> f(1, 2, 3, 4)
2
3
4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment