def addv(a,b,*args):
sum = a + b
for x in args:
sum += x
return sum
addv(b = 1,a = 2) # This is valid
addv(args = (1,2,3,4,5,6,7,8),b = 9, a = 10) #This is giving me unexpected keyword argument.
I learned that keyword arguments are essentially passed as tuples. So, in an attempt to combine both keyword and variable arguments, I did the above experiment.
Is there any way to do such a kind of thing or all variable arguments must be passed to the end while calling a function.