Squares in Django

What is Kwarg !! ??

I am studying a tutorial in django, trying to learn a language, and I came across this.

I would really appreciate it if someone could post / provide a simple example that will help to understand why and how it is used.

+7
source share
1 answer

Based on Keyword Argument Documentation , @Ignacio Vazquez-Abrams cited

** kwargs allows you to handle named arguments that you do not have predefined .

In a function call, the keyword arguments must follow the positional arguments .

All keyword arguments that have passed must correspond to one of the arguments accepted by the function (for example, the actor has an invalid argument for the parrot function), and their order is not important .

+3
source

All Articles