title: Is there a Python equivalent of range(n) for multidimensional ranges?
body: <p>On Python, range(3) will return [0,1,2]. Is there an equivalent for multidimensional ranges?</p>
  
  <pre><code>range((3,2)) # [(0,0),(0,1),(1,0),(1,1),(2,0),(2,1)]
  </code></pre>
  
  <p>So, for example, looping though the tiles of a rectangular area on a tile-based game could be written as:</p>
  
  <pre><code>for x,y in range((3,2)):
  </code></pre>
  
  <p>Note I'm not asking for an implementation. I would like to know if this is a recognized pattern and if there is a built-in function on Python or it's standard/common libraries.</p>