What do you mean by *args and **kwargs?

In cases when we don’t know how many arguments will be passed to a function, like when we want to pass a list or a tuple of values, we use *args.

Example

**kwargs takes keyword arguments when we don’t know how many there will be.

Example