how to assign 1st element of list in variable python code example Example: array to two variables python >>> a,b,c,d = [1,2,3,4] >>> a 1 >>> b 2 >>> c 3 >>> d 4