Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Unpacking list using an asterisk

x,y, *z = [5,10,15,20,25,30]
print(x)
print(y)
print(z)
Source by itsmycode.com #
 
PREVIOUS NEXT
Tagged: #Unpacking #list #asterisk
ADD COMMENT
Topic
Name
8+3 =