Python tip 14: sequence unpacking

Опубликовано: 15 Май 2026
на канале: 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...