DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Python How to convert a string to the name of a function?
def test(): print("Working") eval("test") # function name # or eval("test")() # function call
PREVIOUS
NEXT
Tagged:
#Python
#How
#convert
#string
ADD COMMENT
Topic
COMMENT
Name
5+1 =
Submit