Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python Unpacking

# unpacking values for even numbers in list comprehension
x, y, z = (i*i+i for i in range(6) if i%2==0)
x, y, z
Source by builtin.com #
 
PREVIOUS NEXT
Tagged: #python #Unpacking
ADD COMMENT
Topic
Name
9+3 =