title: Python-Comparing two strings-Unable to loop through
body: <p><strong>What I was trying to do:</strong> Determine if two strings match (without using comparison operators or the cmp() built-in function) by scanning each string.</p>
  
  <p><strong>My solution:</strong> </p>
  
  <pre><code>a = input('Please enter the first string to compare:')
  b = input('Please enter the second string to compare: ')
  
  while True:
      count = 0
      if a[count] != b[count]:             # code was intended to raise an alarm only after finding the first pair of different elements
          print ('Strings don\'t match! ')
          break
      else:                                # otherwise the loop goes on to scan the next pair of elements
          count = count + 1
  </code></pre>
  
  <p><strong>Question:</strong> 
  After testing, it seems that this script is able to compare only the first element(<code>[0]</code>) in each string. If the first elements in the two strings are the same (<code>a[0] == b[0]</code>), then it won't go on scanning the rest of the strings. And it return nothing in the interpreter. Neither would the script end itself if the <code>else</code> suite is executed. </p>
  
  <p>So I'll appreciate if someone could throw some light on what went wrong with my looping mechanism, or just general critiques about this script. Thank you very much!  </p>