I have the following structure in Python:
letters = [[\'a\', \'b\', \'c\'], [\'p\', \'q\', \'r\', \'s\'], [\'j\', \'k\', \'l\']]
I would like t
In Python 2.6 or newer you can use itertools.product:
>>> import itertools >>> map(''.join, itertools.product(*letters)) apj apk apl aqj aqk aql ...etc... csk csl