title: How to use counter in for loop python
body: <pre><code>my_date_list = ['01', '02', '03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31']
  str_date_list=[]
  for item in my_date_list:
      str_date_list.append(item+'-'+'05' + '-' +'09')
  
  counter= 0
  i = iter(range(31))
  for item in i:
      daily_user_status_list=[]
      print counter
      val_time1 = str_date_list[counter]
      val_time2 = str_date_list[counter + 1]
      counter =counter + 1
  </code></pre>
  
  <p>I am getting code error while doing <code>counter = counter + 1</code>.
  Basically, I need to different time from my <code>str_date_list</code> each time.
  but <code>counter = counter +1</code> give me code error.</p>
  
  <p>Is there any other way of doing it?</p>