You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: concat() got some positional-only arguments passed as keyword arguments: 'greeting'
@@ -209,7 +208,7 @@ print(add(*[1, 2, 3]))
209
208
#-> 6
210
209
```
211
210
212
-
Note that when an argument is already inside an `iterable`such as a `tuple` or `list`, it needs to be [_unpacked_][unpacking-and-multiple-assignment] before being passed to a function that takes an arbitrary number of separate arguments.
211
+
Note that when an argument is already inside an `iterable`(_such as a `tuple` or `list`_), it needs to be [_unpacked_][unpacking-and-multiple-assignment] before being passed to a function that takes an arbitrary number of separate arguments.
213
212
This is accomplished by using `*`, which is the [unpacking operator][unpacking operator].
214
213
215
214
`*` in this context _unpacks_ the container into its separate elements which are then transformed by `*args` into a `tuple`.
0 commit comments