title: Python string comparison whilst in loop
body: <p>I am both new to this forum &amp; programming &amp; Python. I am trying to develop my first program, however I keep coming up against a brick wall regarding one particular issue. I am hopng that some kind sole can put me out of my misery &amp; show me how to do what I want to do correctly. I'm sure it's simple if you know what you are doing, but at the moment I am stupid &amp; do not have a clue what I'm doing :-)</p>
  
  <p>Example:</p>
  
  <p>I need to work with 2 files, A &amp; B</p>
  
  <p>File A contains the text:</p>
  
  <pre><code>This is a test
  </code></pre>
  
  <p>While file B contains the text:</p>
  
  <pre><code>h
  t
  s
  i
  a
  </code></pre>
  
  <p>I need to create a program that will grab 1 character at a time from file A and then search through file B looking for an identical character. Once the program has found a match, I want it to print the row number where it found the match, then move on grab another character from file A &amp; repeat this process until EOF.</p>