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