Calmcode - args kwargs: kwargs

What does **kwargs refer to in python?

1 2 3 4 5 6 7

We've expanded the function to also be able to handle many keyword arguments. You can recognize these with the two stars syntax like **kwargs. Feel free to play around with function inputs. Understanding the print statements here is important.

def function(a, b, *args, keyword=True, **kwargs):
    print(a, b)
    print(args)
    print(keyword)
    print(kwargs)