<< py scithon pyEquals >>

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

--> Y = pyDict("hello", "world")
Y  = 

{'hello': 'world'}
--> disp(Y("hello"))

'world'

Report an issue
<< py scithon pyEquals >>