how to take variable number of values from a list in 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