So I have difficulty with the concept of *args and **kwargs.
So far I have learned that:
- *args = list of arguments -as positional arguments
- **kwargs = dictionary - whose keys become separate keyword arguments and the values become values of these arguments.
??
To be honest I don't understand and don't get for what programming task this would helpful. (I am sure there is, but I can't get an understanding of it.)
Maybe:
I think to enter lists and dictionaries as arguments of a function AND at the same time as a wildcard, so I can pass ANY argument?
Is there a simple example on which to explain how *args and **kwargs are used?
Also the tutorial I run through used just the "*" and a variable name.
Is *args and **kwargs just a placeholder or do you use exactly "args" and "*kwargs" in the code?