Calling python function with an unknown number of arguments

Viewed 18634

I am writing a little script in which I call itertools.product like so:

for p in  product(list1,list2,list3):
            self.createFile(p)

Is there a way for me to call this function without knowing in advance how many lists to include?

Thanks

2 Answers
Related