title: Associating items in a file python
body: <p>How could I call up two files or one file (I'm not too sure which would be easier) and associate two strings so that the program could tell if the user entered the correct counter string if one of them was output.
   So Line 'n' in file 1 would equal line n in file 2.</p>
  
  <p>N.B.
  I am creating a system (for a challenge: I'm quite new to Python) that checks whether a password is correct for the associated username and I was wondering whether I could use a file instead of a dictionary.
  I HAVE looked around, but I couldn't find any questions which suited my purpose</p>