Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/07_functions/func_unpacking_arguments.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Argument unpacking with `*args`
# -----------------------------------------------------------------------------
# When calling a function, the star operator can expand an iterable into
# positional arguments. This allows you to store the arguments in a list or
# other iterable and pass them all at once.

def my_function(a, b, c):
print(a, b, c)

Expand Down