title: Python while loop with string
body: <pre><code>string = "Northeastern Africa"
  myString = string.lower()
  index = 0
  num_index = int(index)
  
  length = len(myString)
  num_length = int(length)
  num_length = num_length - 1
  
  while myString[num_index] &gt;=  myString[18]:
      print(num_index)
      print(num_length)
      print(myString[num_index])
      print(num_index)
      num_index = num_index +1
      print(myString[0:num_index])
      print(" ")
  </code></pre>
  
  <p>why does it only print "northeastern" and stops at the next space?  how do i make it go through the full string without stopping at the space in between both words?</p>