Create a list
list expression1 expression2
(list)
(list expression)
(list expression1 expression2 expression3 ...)
Creates a list which contains values of expressions as its elements. Two expressions are used by
default, however a list of any number of elements (also empty list) can be created when instruction is enclosed
in parentheses.
Example:
print (list 2 "abc [a b])
Output:
[2 abc [a b]]
See also:
List
sentence expression1 expression2 - list constructor
Table of Content