eval

object TPT.eval(string expr)

This function evaluates the given expression as a Python script and returns the result.

Parameters:

expr Python script to evaluate. Extended Python syntax of TPT is allowed in this script

Returns:

The result of the Python script after execution