I want to call the function A() based on the userinput
def main_func():
def A():
print("A")
i = 0
userinput = input(": ")
letter = userinput.split()
number = len(letter)
while (i < number):
letter[i]()
i = i + 1
main_func()
thanks in advance!