As you can see from the code below, I am adding a number of functions to the list. As a result, each function is launched, and the return value is added to the list.
foo_list = []
foo_list.append(bar.func1(100))
foo_list.append(bar.func2([7,7,7,9]))
foo_list.append(bar.func3(r'C:\Users\user\desktop\output'))
What would I like to know if it is possible for a function to be stored in a list and then run when it is repeated in a for loop?

source
share