<< scithon scithon pyDict >>

scithon >> scithon > py

py

Executes python statements.

Syntax

py(string code)

Arguments

code

A string containing simple python statements.

Description

Executes simple python statements and returns the output. Variables declared here can be accessed through pyGet().

Example

py("a = 50; b = a**2;print(b)")

The output for the above code is

ans  =

"2500
"

Report an issue
<< scithon scithon pyDict >>