So I posted this question here.
And the solution works.. but i should have been more careful. Please take a look at the link above.
What if I dont have a lists explicitly as a,b,c,d but I have a list of lists.. something like
lists.append(a)
lists.append(b)
and so on. And in the end all i have is "lists"
This
for item in itertools.product(lists):
print(item)
doesnt work in this case??