Every parameter option
def f(op, count=0, *things, **kw):
print(op)
print(count)
print(things)
print(kw)
f(2, 3, 4, 5, a=23, b=12)
Output:
2
3
(4, 5)
{'a': 23, 'b': 12}
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def f(op, count=0, *things, **kw):
print(op)
print(count)
print(things)
print(kw)
f(2, 3, 4, 5, a=23, b=12)
Output:
2
3
(4, 5)
{'a': 23, 'b': 12}