Python *args and **kwargs: A Quick Tutorial #coding #programming #python

preview_player
Показать описание
See how *args and **kwargs can be used in your Python programs to handle an arbitrary number of positional arguments and keyword arguments.

They can be very handy to write flexible Python code because when you use *args and **kwargs you don't have to specify every single argument in the signature of your functions.

They can be also useful to handle optional arguments for functions.

Enjoy this tutorial!
Claudio

#Shorts #CodeFatherTech
Рекомендации по теме