<< pyAdd Scithon pyDiff >>

Scithon >> Scithon > pyDict

pyDict

Creates a python dictionary.

Syntax

pyDict(key1, val1, key2, val2…)

Arguments

key1

1st Key Value

val1

Corresponding value for key referred as key1.

Description

Creates and returns a python dictionary containing the key-value pairs passed. Arguments can be of type int, double, string, bool or python variable. Python variables passed for keys must be hashable.

Example

startPy
Y = pyDict("hello", "world")
disp(Y("hello"))
quitPy

Report an issue
<< pyAdd Scithon pyDiff >>