title: Cartesian product of 2 ranges in python
body: <p>Do you know how to loop over cartesian products of 100 and 200 in python, such as:</p>
  
  <pre><code>for cartesian(100,200):
   print result
  
  1,1
  1,2
  .
  .
  .
  123,197
  .
  .
  100,200
  </code></pre>