exec#

swordfish.exec(script)#

Execute the given script.

Parameters:

script (str) – A string containing the script to be executed.

Returns:

The result of executing the script.

Return type:

Constant

Examples

>>> import swordfish as sf
>>> sf.exec("1+2")
Int(3)