what does product do in python?
How can it be replaced?
what are all it’s capabilities.
what does the * sign do?
How do you test it without getting the generator warning message thing
<itertools.product object at 0x0159BD00>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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)