Name

list — Return a list of values.

Syntax

list(value, ...)
              

The LIST function has the following argument:

value

One or more values that make up the list.

Description

Return a list of values, to be used in functions that require a list of values as input.

Lists can contain any data type, but all values in the list must have the same data types. For example, a list cannot combine numbers and strings.

Examples

Formula

Description

Result

list(1, 2, 3, 4, 5)Return a list of integers.List
list(13.8, 7.6, 22.4)Return a list of numbers.List
list('a', 'b', 'c')Return a list of strings.List