<< pyImport scithon pySet >>

scithon >> scithon > pyList

pyList

Creates a python list.

Syntax

pyList(arg0, arg1…)

Arguments

arg0

Value at index 0 of the List

arg1

Value at index 1 of the List

Description

Creates and returns a python list containing the arguments passed. Arguments can be of type int, double, string, bool or python variable.

Example

--> X = pyList(1,2,"Hello",3)
X  = 

[1, 2, 'Hello', 3]
--> disp(X(0))

1
--> disp(X(2))

'Hello'

Report an issue
<< pyImport scithon pySet >>