title: Python - Why is this function not returning the index for white space?
body: <p>This code will return the index of the numbers and and the non-alphanumeric characters. However, it will only return the index for the first white space but not any of the others and I'm not really sure why.</p>
  
  <pre><code>shoestring = "fwefw1234132 lkjaldskf98:[]['asd fads fadsf"
  
  for n in shoestring:
      if n.isalpha():
          continue
      else:
          print n, shoestring.index(n)
  </code></pre>