The list() function is used to assign values to a list of variables in one operation.list — Assign variables as if they were an array