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
|
890 Discussions
|
Please Login in order to post a comment
You can use unpacking to print the elements instead of its representation
from itertools import product a= [int(i) for i in input().split()] b= [int(i) for i in input().split()]
print(*product(a, b))