Any better way to generate a tuple of all possible tuples in form of (x1,y1,x2,y2)?
<p>I want to generate a tuple of tuple in form of ((x1,y1,x2,y2),...(x1,y1,x2,y2)) where x1,y1,x2,y2 are all in range of (0,8).</p>

<p>Is there any other way rather than the following?</p>

<pre><code>S = list()
for x1 in range(0, 8):
    for y1 in range(0, 8):
        for x2 in range(0, 8):
            for y2 in range(0, 8):
                S.append([x1,y1,x2,y2])
S = tuple(S)       
</code></pre>

<p>thanks</p>
