Ordering Arguments in a Function
But what if you want to create a function that takes a changeable number of both positional and named arguments? In this case, you have to bear in mind that order counts. Just as non-default arguments have to precede default arguments, so
*args must come before
Become a Member to join the conversation.