Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Doc/tutorial/controlflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,10 @@ There are three forms, which can be combined.
Default Argument Values
-----------------------

The most useful form is to specify a default value for one or more arguments.
This creates a function that can be called with fewer arguments than it is
defined to allow. For example::
The most useful form is to specify a default value for one or more parameters.
All positional only parameters (that is, without default values) must come
first, followed by those with defaults. This allows a function to be called
with fewer arguments than it is defined to allow. For example::

def ask_ok(prompt, retries=4, reminder='Please try again!'):
while True:
Expand Down
Loading