Я пытаюсь получить функцию не из модуля, а изнутри самой программы
Пример:
Код: Выделить всё
def foo():
print("Foo")
callfunction = input("What function do you want to call? ")
callfunction() ## Not sure what to put here but but lets say callfunction is foo.
Код: Выделить всё
if callfunction == "Foo"
Foo()
else:
print("No function with that name")
Подробнее здесь: https://stackoverflow.com/questions/422 ... -in-python