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