*args and **kwargs in Python | Non-keyword and Keyword Arguments

preview_player
Показать описание
*args and **kwargs are special keyword which allows function to take variable length argument. *args allows you to pass an arbitrary number of positional arguments to your function. The asterisk * is an unpacking parameter. They are packed as an iterable tuple inside the function. On the other hand, **kwargs allows you to pass a varying number of keyworded arguments to your function.
Рекомендации по теме