django, python

Usage of *args and **kwargs in Python, extra example in Django

What are *args and **kwargs in python? While defining the functions sometimes we also specify parameters which we will use these parameters when we call these functions. Sometimes we don’t know the number of parameters of functions, in these cases, we use *args and **kwargs. Basically *args and **kwargs allow us to pass multiple arguments or keyword arguments to a…

Continue Reading