Python *args and **kwargs: A Quick Tutorial

Publié le: 21 décembre 2020
sur la chaîne: CodeFatherTech
2,977
92

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


Sur cette page du site, vous pouvez voir la vidéo en ligne Python *args and **kwargs: A Quick Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur CodeFatherTech 21 décembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 2,977 fois et il a aimé 92 téléspectateurs. Bon visionnage!