B
bukzor
This question seems easy but I can't figure it out.
Lets say there's a function:
def f(a, *args):
print a
for b in args: print b
and elsewhere in your program you have a list and a dict like this:
args = [2, 3]
kwargs = {'a':1}
I'd like to get f() to print something like the following, but I can't
figure out how.
1
2
Lets say there's a function:
def f(a, *args):
print a
for b in args: print b
and elsewhere in your program you have a list and a dict like this:
args = [2, 3]
kwargs = {'a':1}
I'd like to get f() to print something like the following, but I can't
figure out how.
1
2