Python *args and **kwargs: A Quick Tutorial

Pubblicato il: 21 dicembre 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online Python *args and **kwargs: A Quick Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CodeFatherTech 21 dicembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,977 volte e gli è piaciuto 92 spettatori. Buona visione!