View All
Python Facts
Ordered and Named Function Arguments
You can accept variable amounts of function parameters by name and by order
def f(*args, **kwargs): print(args) print(kwargs) f(1,2,3,named1="keyword arg1", another="another kwarg")
Add
your own, or share this snippet:
Tweet
Give me another one!