meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
programming:python:syntax:collections:lists [2024/12/04 16:39] – removed - external edit (Unknown date) 127.0.0.1 | programming:python:syntax:collections:lists [2024/12/04 16:39] (current) – ↷ Page moved from programming:python:syntax:lists to programming:python:syntax:collections:lists niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== lists ====== | ||
+ | |||
+ | ===== assign list to variables ===== | ||
+ | |||
+ | <code python> | ||
+ | args = [ ' | ||
+ | cmd, *args = args | ||
+ | |||
+ | # OR | ||
+ | |||
+ | cmd = args.pop(0) | ||
+ | |||
+ | do_cmd(cmd, *args) | ||
+ | </ | ||
+ | |||