Python 3.9: Function Defaults

Publié le: 10 février 2021
sur la chaîne: BitCode
77
15

Welcome to another Python 3.9 tutorial video, this video is about the Default Function Parameters.

In the last tutorial, we explained what function parameters are, and that we could have an infinite amount of them. In this, we look at how having a lot of them could become troublesome as you might not want every value to change.
So we have function parameter defaults, which allow the function's creator to set "default" values to the function parameters. This allows anyone to use a function with the default values, yet lets anyone who wishes to customize them the ability to specify different values.

When using defaults, any parameters with defaults should be the last ones listed in the function's parameters.

Keyboard I Use: https://amzn.to/2NgjPFV

Playlist:   • Installing Python 3.9  


Sur cette page du site, vous pouvez voir la vidéo en ligne Python 3.9: Function Defaults durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur BitCode 10 février 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 77 fois et il a aimé 15 téléspectateurs. Bon visionnage!