Oct 13, 2017

Assign list elements to new variables in Python

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

print(x, y, z)

#-> 1 2 3
Post a Comment

Featured Post

Setup Chinese Input Method in Ubuntu 17.10 Artful

sudo apt install ibus-sunpinyin After either of those commands do not forget to restart the IBus daemon ibus restart You might need t...