Python Programming - Standard Libraries - Discussion

Discussion Forum : Standard Libraries - General Questions (Q.No. 33)
33.
What is the purpose of the itertools.product() function?
Generates all possible permutations of an iterable
Computes the Cartesian product of multiple iterables
Repeats an iterable indefinitely
Filters elements based on a predicate function
Answer: Option
Explanation:
The itertools.product() function in Python computes the Cartesian product of multiple iterables.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.