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
itertools
How about:
mylength = len(x) * len(y)