Getting the cartesian product of two lists as a list-of-lists [duplicate]

well, you just needed one more level of list.

deck = [[x+y for x in value] for y in deck_types]

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top