Tuple unpacking in Python

Publié le: 27 mars 2023
sur la chaîne: Python Morsels
1,449
36

Instead of using hard-coded indices to get tuple elements, use tuple unpacking to give descriptive names to each item. Important items should have a name instead of a number.

Read an article version of this video at https://pym.dev/tuple-unpacking/

Find more Python screencasts at https://pym.dev/screencasts/

00:00 An alternative to hard-coded indexes
01:17 Unpacking without an equals sign
02:45 Use tuple unpacking as a descriptive alternative to indexing


Sur cette page du site, vous pouvez voir la vidéo en ligne Tuple unpacking in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Python Morsels 27 mars 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,449 fois et il a aimé 36 téléspectateurs. Bon visionnage!