Sep 17, 2018

Assign list elements to new variables in Python

testList = [1,2,3]
x, y, z = testList

print(x, y, z)

#-> 1 2 3