Syntax Help

Terry Reedy tjreedy at udel.edu
Wed Jun 10 17:38:25 EDT 2020


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



More information about the Python-list mailing list