You are viewing a single comment's thread. Return to all comments →
from itertools import product def numerize(lista): return [int(num) for num in lista] def main(): list_a = numerize(input().split(" ")) list_b = numerize(input().split(" ")) [print(item, end=" ") for item in product(list_a, list_b)] if __name__ == '__main__': main()
Seems like cookies are disabled on this browser, please enable them to open this website
itertools.product()
You are viewing a single comment's thread. Return to all comments →