1from math import *
2names = {'square_root': sqrt, 'power': pow}
3print(eval('dir()', names))
4
5# Using square_root in Expression
6print(eval('square_root(9)', names))
1#string in another string
2expr="'2+3'"
3print(eval(expr))
4print(eval(eval(expr)))