Skip to main content
added 35 characters in body
Source Link
L. F.
  • 221
  • 3
  • 9

Python 3 (Cython), 4446 44 31 bytes

lambda x:__import__('itertools').product(*x)

Try it online!Try it online!

The absolute itertools.product solution. Shorter than the other Python answers.This doesn't need more explanation, right?

(Initial-13 bytes thanks to f= removed perJo King; -2 bytes thanks to caird coinheringaahing's comment)

Python 3 (Cython), 44 bytes

lambda x:__import__('itertools').product(*x)

Try it online!

The absolute itertools.product solution. Shorter than the other Python answers.

(Initial f= removed per caird coinheringaahing's comment)

Python 3 (Cython), 46 44 31 bytes

__import__('itertools').product

Try it online!

This doesn't need more explanation, right?

(-13 bytes thanks to Jo King; -2 bytes thanks to caird coinheringaahing)

added 148 characters in body
Source Link
L. F.
  • 221
  • 3
  • 9

Python 3 (Cython), 4644 bytes

f=lambdalambda x:__import__('itertools').product(*x)

Try it online!

The absolute itertools.product solution. Shorter than the other Python answers.

(Initial f= removed per caird coinheringaahing's comment)

Python 3 (Cython), 46 bytes

f=lambda x:__import__('itertools').product(*x)

Try it online!

The absolute itertools.product solution. Shorter than the other Python answers.

Python 3 (Cython), 44 bytes

lambda x:__import__('itertools').product(*x)

Try it online!

The absolute itertools.product solution. Shorter than the other Python answers.

(Initial f= removed per caird coinheringaahing's comment)

Source Link
L. F.
  • 221
  • 3
  • 9

Python 3 (Cython), 46 bytes

f=lambda x:__import__('itertools').product(*x)

Try it online!

The absolute itertools.product solution. Shorter than the other Python answers.