Definition and Usage. The list() function is used to assign values to a list of variables in one operation. Note: This function only works on numerical arrays.
www.w3schools.com