Python eval() function evaluates its argument as an expression and executes it.
eval()
>>> x = 5 >>> eval("x + 10")
15
>>> s = "x + 12" >>> eval(s)
17