Syntax Help

Python python at python.invalid
Wed Jun 10 16:48:56 EDT 2020


Le 10/06/2020 à 18:56, John Weller a écrit :
> Hi
> 
>   
> 
> I am trying to learn python.  Looking at an example on the web I found this
> line:
> 
>   
> 
> def plot(*args, **kwargs):
> 
>   
> 
> What do the stars mean?

That, respectively, positional arguments will be packed into a
sequence of references called args and that keywords argument
will be packed into a dictionary called kwargs.




More information about the Python-list mailing list