On 6/10/2020 12:56 PM, John Weller wrote:

I am trying to learn python.  Looking at an example on the web I found this
line:

def plot(*args, **kwargs):

This is function definition.

What do the stars mean?

The python docs have an index that has a Symbols page.
https://docs.python.org/3/genindex-Symbols.html
* and ** both have entries for 'function definition' which point to
https://docs.python.org/3/reference/compound_stmts.html#index-22

As a beginner, you might get more help from the tutorial, but the Symbols index is a way to find concise reminders for the different uses of different symbols.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to