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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
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)