

Jakob Bruun Hansen skrev:
def (lsts): kombinationer = [[x] for x in lsts[0]]return reduce(lambda lst1,lst2:[x+[y] for x in lst1 for y in lst2], lsts[1:], kombinationer)
hmm, glemte at give funktionen et navn...: def banan(lsts): combinationer = [[x] for x in lsts[0]]return reduce(lambda lst1,lst2:[x+[y] for x in lst1 for y in lst2], lsts[1:], combinationer)



