title: list and counting repeat letters
body: <p>I need to receive a string from the user, present it in list so each organ in the list contains [the letter, the number it repeat in a row].</p>
  
  <p>I thought my code is good but it doesn't work.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>my_str = raw_input( "Enter a string:" )
  
  j=0
  while j&lt;=len(my_str):
      for i in my_str:
          counter=0
          if i==i+1:
              counter +=1
              continue
              print i, counter
  
          else:
              print i,1
              j+=1
  </code></pre>
  
  <p>output:</p>
  
  <pre>Enter a string: baaaaab
  As list: [['b', 1], ['a', 5], ['b', 1]]</pre>