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
|
817 Discussions
|
Please Login in order to post a comment
from itertools import product
a = list(map(int, input().split())) b = list(map(int, input().split())) for i in (list(product(*[a,b]))): print(i,end=" ")
Python 3, input from STDIN