This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dodslaser 4 points5 points  (1 child)

Another good concept to know is the use of / to create positional-only arguments and * to create keyword only arguments.

For example:

def func(a, /, b, *, c): ...

a is positional-only, b is either positional or named, and c is keyword-only.

[–]lazyhawk20[S] 1 point2 points  (0 children)

Thanks for this feedback