Python Tricks #18 - Store values of a list into new variables

Words
0
Reading
0 min
Listen
Play
7y
>>> a = [1, 2, 3]
>>> x, y, z = a 
>>> x
1
>>> y
2
>>> z
3
Python Tricks #18 - Store values of a list into new variables | Ecency