title: Compare two strings in python
body: <p>well i need to compare two strings or at least find a sequence of characters from a string to another string. The two strings contain <code>md5</code> of files which i must compare and say if i find a match.</p>
  
  <p>my current code is:</p>
  
  <pre><code>def comparemd5():
      origmd5=getreferrerurl()
      dlmd5=md5_for_file(file_name)
      print "original md5 is",origmd5
      print "downloader file md5 is",dlmd5
      s = difflib.SequenceMatcher(None, origmd5, dlmd5)
      print "ratio is:",s.ratio()
  </code></pre>
  
  <p>the output i get is:</p>
  
  <pre><code>original md5 is ['0430f244a18146a0815aa1dd4012db46', '0430f244a18146a0815aa1dd40
  12db46', '59739CCDA2F15D5AC16DB6695CAE3378']
  
  downloader file md5 is 59739ccda2f15d5ac16db6695cae3378
  
  ratio is : 0.0
  </code></pre>
  
  <p>Thus! there is a match from <code>dlmd5</code> in <code>origmd5</code> but somehow its not finding it...
  I am doing something wrong somewhere...Please help me out :/</p>