Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

unpack list python

# unpack a list python:
list = ['red', 'blue', 'green']

# option 1
red, blue = colors

# option 2
*list
Source by www.pythontutorial.net #
 
PREVIOUS NEXT
Tagged: #unpack #list #python
ADD COMMENT
Topic
Name
2+5 =