Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

non-default argument follows default argument

The Python “SyntaxError: non-default argument follows default argument” error is
raised when you specify a default argument before a non-default argument. 
To solve this error, make sure that you arrange all the arguments in a function
so that default arguments come after non-default arguments.
 
PREVIOUS NEXT
Tagged: #argument #default #argument
ADD COMMENT
Topic
Name
1+8 =