I have several functions such as:
def func1():
print 'func1'
def func2():
print 'func2'
def func3():
print 'func3'
Then I ask the user to input what function they want to run using choice = raw_input()
and try to invoke the function they choose using choice()
. If the user input func1 rather than invoking that function it gives me an error that says 'str' object is not callable
. Is their anyway for me to turn 'choice' into a callable value?