Python tip 14: sequence unpacking

Pubblicato il: 02 agosto 2022
sul canale di: learnbyexample
289
3

You can assign the individual elements of a sequence to multiple variables. This is known as "sequence unpacking" and it is handy in many situations. Unpacking isn't limited to mapping every element of the sequence. You can use a `*` prefix to catch all the remaining values (if any is left) in a `list` variable.

This video is based on content from my "100 Page Python Intro" ebook: https://github.com/learnbyexample/100...


In questa pagina del sito puoi guardare il video online Python tip 14: sequence unpacking della durata di ore minuti seconda in buona qualità , che l'utente ha caricato learnbyexample 02 agosto 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 289 volte e gli è piaciuto 3 spettatori. Buona visione!