evaluate(expr:)¶ Evaluates an expression. Declaration func evaluate( expr: String ) throws -> Object Parameters expr: Expression to evaluate. Throws An Exception if a Python exception was raised. Otherwise, an unhandled error. Returns The result of the evaluation.