We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Itertools
- itertools.product()
- Discussions
itertools.product()
itertools.product()
Sort by
recency
|
869 Discussions
|
Please Login in order to post a comment
import itertools for i in list(itertools.product(map(int, input().split()), map(int, input().split()))): print(i, end=" ")
Here is HackerRank itertools.product() python solution - https://programmingoneonone.com/hackerrank-itertools-product-solution-in-python.html