The arguments are a string and optional globals and locals. If provided, globals must be a dictionary. If provided, locals can be any mapping object.
eval(expression, globals=None, locals=None)
>>> x = 1 >>> eval('x+1') 2