Ask Your Question

Revision history [back]

You could try using cartesian_product:

for a, b, c in cartesian_product([srange(1,100),  srange(1,100),  srange(1,100)]):
    if a<b and b<c:
        do something

But I'm worried about computational cost...

You could try using cartesian_product:

for a, b, c in cartesian_product([srange(1,100),  srange(1,100),  srange(1,100)]):
    if a<b and b<c:
a<b<c:
        do something

But I'm worried about computational cost... cost...

You could try using cartesian_product:

for a, b, c in cartesian_product([srange(1,100),  srange(1,100),  srange(1,100)]):
    if a<b<c:
a<=b<=c:
        do something

But I'm worried about computational cost...