How to call a function depending on the user input?
Hi team I am trying to get a user input and then store it in a list now what I want to do is, call a specific function depending on the [i] th value in that list for example my_list[0] has value 'a' then I want to call the function_a() #which i have already defined my_list[1] has value 'b' stored at that index then i want to call function_b #again function_b has already beem defined so basically, I want to see if the value in that list matches any of my function then I want to trigger that function example in detail: user_input : 'text' list = [] for i in user_input: list.append[i] so my list becomes ['t','e','x','t'] now, I have specific functions for each of these alphabets (i think i should have a dictionary or something where keys are alphabets and values are respective function, I don't know if thats even phaaaasssibbble) but i want to call those function as per these values in the list so here i want my program to call function_t function_e function_x function_t