Jan-30-2021, 08:18 AM
product will give you all the combinations you're looking for. Just need to set up the ranges to pass in.
from itertools import product limits=[(1,9,1,"v"),(50,350,50,"d")] rangelist = [range(x[0], x[1], x[2]) for x in limits] print(list(product(*rangelist)))