Python functions question?
If i have a variable that contains a function name, and i wanted to run that function in the variable, how would i do it?
(Without just doing
Wdym "have a variable that contains a function name"?
do you mean like this:
def hello(): # the function print("hello") a_variable = hello() # a function in a variable
In this case, I don't think its possible, but I think you can store functions inside arrays tho...