title: Assign a repeated sequence to an index in python
body: <p>I am very new to <code>python</code> and I wanted to know, how can I assign an integer incrementally to every <code>3 values</code> in a series. Might be better to explain with an example:</p>
  
  <p>The result should contain the following pattern : </p>
  
  <p><code>(1,1),(2,1),(3,1),(4,2),(5,2),(6,2),(7,3).......</code></p>