I have a function:
def func(a,b,c,d,e,f,g):
do something using the paramters
I would like to run the function func
by taking param1
and param2
and so on in a loop.
I have the parameters inside a list, like:
param1 = list[a,b,c,d,e,f,g]
param2 = list[a1,b1,c1,d1,e1,f1,g1]
I tried
main_list = [param1,param2,....,param8]
for a in main_list:
func(a)
But that doesn't seem to work!
EDIT:
My functions takes in 7 parameters, and I have to loop it 8 times, I have 8 such different parameter lists –