We use cookies to enhance your browsing experience.

Learn More
Back to Library
PYTHONpython

*args & **kwargs

Flexible function arguments.

def foo(*args, **kwargs):
    print(args)   # tuple of positional args
    print(kwargs) # dict of keyword args
python function syntax
25+Total Tools
Operations
4Languages
100%Privacy

We use cookies to enhance your experience and serve personalized ads.