Let's say there is a function with arguments A, B, C, D, and E.
Function(A, B, C, D, E)
However, not all arguments are needed all the time. For instance, only A and C are needed in some cases. Currently, I would have to call the function like this:
Function('apple', '', 'orange juice', '', '')
Having those empty quotes bothers me. Is there a way to simplify it to just
Function('apple', 'orange juice')
?
Perhaps Function(A='apple', C='orange juice')
could work?
I attempted to make the arguments optional, but my understanding is that I cannot specify that I want argument B to be blank. The function expects 5 arguments, so 5 are required.