Let's say that I have a function which takes 10 arguments and another functions which takes 11 arguments and the second one is calling the first one. My code:
def func10(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10):
return a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10
def func11(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11):
return a11 + func10(a1=a1, a2=a2, a3=a3, a4=a4, a5=a5, a6=a6, a7=a7, a8=a8, a9=a9, a10=a10)
Is it possible to write it nicer, i.e. without writing a1=a1, a2=a2, ...?
EDIT
Maybe to be more precise: in the function func11 the arguments are a1, a2, ... a11. Ten of these arguments are also passed to func10 function with exactly the same names. I would like to make this works:
def func11(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11):
return a11 + func10(arguments)
func11(a1=a1, a11=11, a2=a2, a3=a3, a4=a4, a5=a5, a6=a6, a7=a7, a8=a8, a9=a9, a10=10)
so that I can change the order of arguments when calling func11 but the proper arguments (i.e. a1 - a10) should be passed to func10 inside func11 in a simple way instead of writing again a1=a1 .... How can I do that? And I don't want to do summation in my function, this is just an example!