For example, when I have:
def function(text):
print(text)
mylist = [function('yes'),function('no')]
mylist[0]
It just prints yes and no and doesn't do anything with mylist[0]
.
I want it to be able to call the function with parameters in the list and not have the functions run when the program starts. Is this possible?