Function implementation using **kwargs

Yes, the following is possible, as per PEP 468 referenced above, if we can be sure that the first argument passed to the function refers to the odd numbers and the second to the even numbers. The names of the arguments don’t matter.

def sorted_with_kwargs(**kwargs):
    result = []
    num_lists = list(kwargs.values())
    for pair in zip(num_lists[0], num_lists[1]):
        result.append(pair[0])
        result.append(pair[1])
    return result