I am using itertools to run a numerical simulation iterating over all possible combinations of my input parameters. In the example below, I have two parameters and
import itertools
param = (('a', 'b'), (1, 2)) # a list of lists
# Calculate all combinations
combinations = itertools.product(*param)
# Calculate number of combinations
total_combinations = 1
for i in param:
total_combinations = total_combinations * len(i)