Kwargs? meaning

Alo friends
what does it mean this keyword: kwargs
that appears everywhere, what does it stand for?
thanks a lot

1 Like

This is a brief explanation of “key word arguments” (kwargs) to a function.

1 Like

Beyond that link, they are typically used when a function you call needs to pass parameters to functions within its scope.

So you will see patterns like

def foo(p1, p2, **kwargs):
  if(p1):
    bar(p2, **kwargs)

foo("thing1", "thing2", "baz", "bop")
2 Likes

thank you very much for your help :wink: