If you know that you are receiving the date as the second argument, then explicitly define it in the signature
def test_stats(team, date):
If you can pass both there and then, use the keyword arguments
def test_stats(team, date=None, something_else=None):
*args should be used only if you want to pass a sequence of arguments without creating a sequence in advance
def get_integers(*args): return args >>> get_integers(1, 3, 4, 8, 9, 11) (1, 3, 4, 8, 9, 11)
*args is a tuple, and **kwargs is a dictionary.
source share