how to convert string to function name in python

Solutions on MaxInterview for how to convert string to function name in python by the best coders in the world

showing results for - "how to convert string to function name in python"
Djibril
02 Jul 2016
1def add(x,y):
2	print('does something')
3    
4eval("add")(x,y)