Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert string to function name in python

def add(x,y):
	print('does something')
    
eval("add")(x,y)
 
PREVIOUS NEXT
Tagged: #convert #string #function #python
ADD COMMENT
Topic
Name
9+5 =