0

I am new to Python and Django framework. I found '*', '*args', '**', '**kwargs' as parameters in init method or in other methods. like given below.

def __init__(self, *args, **kwargs):
    super(RestRouter, self).__init__(*args, **kwargs)

I am quite unable to understand how to pass these parameters and which one is suitable in which condition? Can anyone explain me in brief with a good example for each parameter?

Nishant Upadhyay
  • 639
  • 7
  • 20

0 Answers0