Suppose I have this code:
import math import traceback def getValue(s,p,val): d={} for k in range(len(p)): d[p[k]]=val[k] y = eval(s,d)