Python Forum

Full Version: Help with itertools
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Been a while since I did this.

Can't remember how to get from:
[[0], [4, 3, 14], [4, 3, 21], [4, 10, 16]]
to:
[0, 4, 4, 4]
[0, 4, 4, 10]
[0, 4, 4, 16]
[0, 4, 3, 4]
[0, 4, 3, 10]
ETC ETC.

I figure it's product from itertools but I'm not getting anywhere and google results examples don't seem to be working for me.

NM, I forgot about the *.
so, what have you tried so far?