It computes the Cartesian product over any number of iterables. Source
So if you have two lists like [1,2]
and [3,4]
, the Cartesian product is (1,3),(1,4),(2,3),(2,4)
10
solved What does product() do in python? [closed]
It computes the Cartesian product over any number of iterables. Source
So if you have two lists like [1,2]
and [3,4]
, the Cartesian product is (1,3),(1,4),(2,3),(2,4)
10
solved What does product() do in python? [closed]