List comprehension from python dictionary
Here’s my example: params = { ‘param1’: [[25, 30, 35],[-25, -30, -35]], ‘param2’: [[20, 25, 30],[-20, -25, -30]] } for key, value in paramsNEW.items(): print( key, value[0], value[1] ) for v in value: print(v) for key, value in paramsNEW.items(): print(key, [(v1,v2) for v1 in value[0] for v2 in value[1]])