variants(sizes, colors) producing every "size-color" combination string, sizes varying slowest, using one comprehension with two for clauses.variants(['S', 'M'], ['red', 'blue'])
['S-red', 'S-blue', 'M-red', 'M-blue']
Each size pairs with each color.
Two for clauses in one comprehension form a cross product.
The first for is the slow-moving one.