Suppose I have this function signature:
def foo(a=True, b=True, c=True, d=True, e=True):
I’ve decided these would be concise ways to call this function, considering all passed parameters should be False:
foo(*5*[False])
foo(*[False]*5)
But something tells me that would be bad Python style. What do you think?
if it’s hard to read, it’s bad style.
remember that code is read a lot more often than written.