Iterate over all combinations of values in multiple lists in Python
Iterate over all combinations of values in multiple lists in Python Question: Given multiple list of possibly varying length, I want to iterate over all combinations of values, one item from each list. For example: first = [1, 5, 8] second = [0.5, 4] Then I want the output of to be: combined = [(1, …