meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming:python:syntax:collections:lists [2024/12/04 16:39] – removed - external edit (Unknown date) 127.0.0.1programming: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 = [ 'fill', '255', '255', '255' ]
 +cmd, *args = args
 +
 +# OR
 +
 +cmd = args.pop(0)
 +
 +do_cmd(cmd, *args)
 +</code>
 +