Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
pep8 to help,
both methods are not correct, as for me, although the first one does not contradict the standard, but with a large number of parameters it is not readable
with named parameters, this is closer to me
def func_name(
var1=def_val1,
var2=def_val2,
varN=def_var3)
As it is more convenient for you, if only the same in one block of code.
The second approach nibbles the string length more, the first approach can be confusing if used inside an if / while / with header or when defining a function.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question