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
|
756 Discussions
|
Please Login in order to post a comment
`from itertools import product
lst_A = set([int(char) for char in input().split()]) lst_B = set([int(char) for char in input().split()])
print(*product(str1,str2)) `
** Found a simple Code which takes in 5 lines** from itertools import product A = list(map(int, input().split())) B = list(map(int, input().split())) Y=list(product(A,B)) print(' '.join(map(str,Y)))