Is the code you provided intended correctly?
It suspect that problem is that you overwriting combination value with every loop iteration and therefore you get only last result.
It suspect that problem is that you overwriting combination value with every loop iteration and therefore you get only last result.
>>> combinations = list() >>> for i in range(3): ... combinations.append([1, 2, 3]) ... >>> combinations [[1, 2, 3], [1, 2, 3], [1, 2, 3]] >>> for row in combinations: ... print(sequence_product(row)) ... 6 6 6
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.