Python Cheat Sheet/Destructuring assignment

Destructuring assignment

Section: Collections overview

Destructuring assignment

python
python
first, *middle, last = values

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Collections overview
List literal
List literal
OpenIn sheetpythonsame section
Tuple literal
Tuple literal
OpenIn sheetpythonsame section
Set literal
Set literal
OpenIn sheetpythonsame section
Dictionary literal
Dictionary literal
OpenIn sheetpythonsame section
Membership test
Membership test
OpenIn sheetpythonsame section
Print text
Print text